<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/doc/src/qnamespace.qdoc -->
<head>
  <title>Qt 4.3: Qt Namespace Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Qt Namespace Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1>
<p>The Qt namespace contains miscellaneous identifiers used throughout the Qt library. <a href="#details">More...</a></p>
<pre> #include &lt;Qt&gt;</pre><ul>
<li><a href="qt-qt3.html">Qt 3 support members</a></li>
</ul>
<a name="types"></a>
<h3>Types</h3>
<ul>
<li><div class="fn"/>flags <b><a href="qt.html#AlignmentFlag-enum">Alignment</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#AlignmentFlag-enum">AlignmentFlag</a></b> { AlignLeft, AlignRight, AlignHCenter, AlignJustify, ..., AlignVertical_Mask }</li>
<li><div class="fn"/>enum <b><a href="qt.html#AnchorAttribute-enum">AnchorAttribute</a></b> { AnchorName, AnchorHref }</li>
<li><div class="fn"/>enum <b><a href="qt.html#ApplicationAttribute-enum">ApplicationAttribute</a></b> { AA_ImmediateWidgetCreation, AA_MSWindowsUseDirect3DByDefault }</li>
<li><div class="fn"/>enum <b><a href="qt.html#ArrowType-enum">ArrowType</a></b> { NoArrow, UpArrow, DownArrow, LeftArrow, RightArrow }</li>
<li><div class="fn"/>enum <b><a href="qt.html#AspectRatioMode-enum">AspectRatioMode</a></b> { IgnoreAspectRatio, KeepAspectRatio, KeepAspectRatioByExpanding }</li>
<li><div class="fn"/>enum <b><a href="qt.html#Axis-enum">Axis</a></b> { XAxis, YAxis, ZAxis }</li>
<li><div class="fn"/>enum <b><a href="qt.html#BGMode-enum">BGMode</a></b> { TransparentMode, OpaqueMode }</li>
<li><div class="fn"/>enum <b><a href="qt.html#BrushStyle-enum">BrushStyle</a></b> { NoBrush, SolidPattern, Dense1Pattern, Dense2Pattern, ..., TexturePattern }</li>
<li><div class="fn"/>enum <b><a href="qt.html#CaseSensitivity-enum">CaseSensitivity</a></b> { CaseInsensitive, CaseSensitive }</li>
<li><div class="fn"/>enum <b><a href="qt.html#CheckState-enum">CheckState</a></b> { Unchecked, PartiallyChecked, Checked }</li>
<li><div class="fn"/>enum <b><a href="qt.html#ClipOperation-enum">ClipOperation</a></b> { NoClip, ReplaceClip, IntersectClip, UniteClip }</li>
<li><div class="fn"/>enum <b><a href="qt.html#ConnectionType-enum">ConnectionType</a></b> { DirectConnection, QueuedConnection, BlockingQueuedConnection, AutoConnection }</li>
<li><div class="fn"/>enum <b><a href="qt.html#ContextMenuPolicy-enum">ContextMenuPolicy</a></b> { NoContextMenu, PreventContextMenu, DefaultContextMenu, ActionsContextMenu, CustomContextMenu }</li>
<li><div class="fn"/>enum <b><a href="qt.html#Corner-enum">Corner</a></b> { TopLeftCorner, TopRightCorner, BottomLeftCorner, BottomRightCorner }</li>
<li><div class="fn"/>enum <b><a href="qt.html#CursorShape-enum">CursorShape</a></b> { ArrowCursor, UpArrowCursor, CrossCursor, WaitCursor, ..., BitmapCursor }</li>
<li><div class="fn"/>enum <b><a href="qt.html#DateFormat-enum">DateFormat</a></b> { TextDate, ISODate, LocalDate, SystemLocaleDate, LocaleDate }</li>
<li><div class="fn"/>enum <b><a href="qt.html#DayOfWeek-enum">DayOfWeek</a></b> { Monday, Tuesday, Wednesday, Thursday, ..., Sunday }</li>
<li><div class="fn"/>enum <b><a href="qt.html#DockWidgetArea-enum">DockWidgetArea</a></b> { LeftDockWidgetArea, RightDockWidgetArea, TopDockWidgetArea, BottomDockWidgetArea, AllDockWidgetAreas, NoDockWidgetArea }</li>
<li><div class="fn"/>flags <b><a href="qt.html#DockWidgetArea-enum">DockWidgetAreas</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#DropAction-enum">DropAction</a></b> { CopyAction, MoveAction, LinkAction, ActionMask, IgnoreAction }</li>
<li><div class="fn"/>flags <b><a href="qt.html#DropAction-enum">DropActions</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#EventPriority-enum">EventPriority</a></b> { HighEventPriority, NormalEventPriority, LowEventPriority }</li>
<li><div class="fn"/>enum <b><a href="qt.html#FillRule-enum">FillRule</a></b> { OddEvenFill, WindingFill }</li>
<li><div class="fn"/>enum <b><a href="qt.html#FocusPolicy-enum">FocusPolicy</a></b> { TabFocus, ClickFocus, StrongFocus, WheelFocus, NoFocus }</li>
<li><div class="fn"/>enum <b><a href="qt.html#FocusReason-enum">FocusReason</a></b> { MouseFocusReason, TabFocusReason, BacktabFocusReason, ActiveWindowFocusReason, ..., OtherFocusReason }</li>
<li><div class="fn"/>enum <b><a href="qt.html#GlobalColor-enum">GlobalColor</a></b> { white, black, red, darkRed, ..., color1 }</li>
<li><div class="fn"/>typedef <b><a href="qt.html#HANDLE-typedef">HANDLE</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#HitTestAccuracy-enum">HitTestAccuracy</a></b> { ExactHit, FuzzyHit }</li>
<li><div class="fn"/>enum <b><a href="qt.html#ImageConversionFlag-enum">ImageConversionFlag</a></b> { AutoColor, ColorOnly, MonoOnly, DiffuseDither, ..., AvoidDither }</li>
<li><div class="fn"/>flags <b><a href="qt.html#ImageConversionFlag-enum">ImageConversionFlags</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#InputMethodQuery-enum">InputMethodQuery</a></b> { ImMicroFocus, ImFont, ImCursorPosition, ImSurroundingText, ImCurrentSelection }</li>
<li><div class="fn"/>enum <b><a href="qt.html#ItemDataRole-enum">ItemDataRole</a></b> { DisplayRole, DecorationRole, EditRole, ToolTipRole, ..., UserRole }</li>
<li><div class="fn"/>enum <b><a href="qt.html#ItemFlag-enum">ItemFlag</a></b> { ItemIsSelectable, ItemIsEditable, ItemIsDragEnabled, ItemIsDropEnabled, ..., ItemIsTristate }</li>
<li><div class="fn"/>flags <b><a href="qt.html#ItemFlag-enum">ItemFlags</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#ItemSelectionMode-enum">ItemSelectionMode</a></b> { ContainsItemShape, IntersectsItemShape, ContainsItemBoundingRect, IntersectsItemBoundingRect }</li>
<li><div class="fn"/>enum <b><a href="qt.html#Key-enum">Key</a></b> { Key_Escape, Key_Tab, Key_Backtab, Key_Backspace, ..., Key_Cancel }</li>
<li><div class="fn"/>enum <b><a href="qt.html#KeyboardModifier-enum">KeyboardModifier</a></b> { NoModifier, ShiftModifier, ControlModifier, AltModifier, ..., GroupSwitchModifier }</li>
<li><div class="fn"/>flags <b><a href="qt.html#KeyboardModifier-enum">KeyboardModifiers</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#LayoutDirection-enum">LayoutDirection</a></b> { LeftToRight, RightToLeft }</li>
<li><div class="fn"/>enum <b><a href="qt.html#MaskMode-enum">MaskMode</a></b> { MaskInColor, MaskOutColor }</li>
<li><div class="fn"/>enum <b><a href="qt.html#MatchFlag-enum">MatchFlag</a></b> { MatchExactly, MatchFixedString, MatchContains, MatchStartsWith, ..., MatchRecursive }</li>
<li><div class="fn"/>flags <b><a href="qt.html#MatchFlag-enum">MatchFlags</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#Modifier-enum">Modifier</a></b> { SHIFT, META, CTRL, ALT, UNICODE_ACCEL }</li>
<li><div class="fn"/>enum <b><a href="qt.html#MouseButton-enum">MouseButton</a></b> { NoButton, LeftButton, RightButton, MidButton, XButton1, XButton2 }</li>
<li><div class="fn"/>flags <b><a href="qt.html#MouseButton-enum">MouseButtons</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#Orientation-enum">Orientation</a></b> { Horizontal, Vertical }</li>
<li><div class="fn"/>flags <b><a href="qt.html#Orientation-enum">Orientations</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#PenCapStyle-enum">PenCapStyle</a></b> { FlatCap, SquareCap, RoundCap }</li>
<li><div class="fn"/>enum <b><a href="qt.html#PenJoinStyle-enum">PenJoinStyle</a></b> { MiterJoin, BevelJoin, RoundJoin, SvgMiterJoin }</li>
<li><div class="fn"/>enum <b><a href="qt.html#PenStyle-enum">PenStyle</a></b> { NoPen, SolidLine, DashLine, DotLine, ..., CustomDashLine }</li>
<li><div class="fn"/>enum <b><a href="qt.html#ScrollBarPolicy-enum">ScrollBarPolicy</a></b> { ScrollBarAsNeeded, ScrollBarAlwaysOff, ScrollBarAlwaysOn }</li>
<li><div class="fn"/>enum <b><a href="qt.html#ShortcutContext-enum">ShortcutContext</a></b> { WidgetShortcut, WindowShortcut, ApplicationShortcut }</li>
<li><div class="fn"/>enum <b><a href="qt.html#SortOrder-enum">SortOrder</a></b> { AscendingOrder, DescendingOrder }</li>
<li><div class="fn"/>enum <b><a href="qt.html#TextElideMode-enum">TextElideMode</a></b> { ElideLeft, ElideRight, ElideMiddle, ElideNone }</li>
<li><div class="fn"/>enum <b><a href="qt.html#TextFlag-enum">TextFlag</a></b> { TextSingleLine, TextDontClip, TextExpandTabs, TextShowMnemonic, ..., TextJustificationForced }</li>
<li><div class="fn"/>enum <b><a href="qt.html#TextFormat-enum">TextFormat</a></b> { PlainText, RichText, AutoText, LogText }</li>
<li><div class="fn"/>enum <b><a href="qt.html#TextInteractionFlag-enum">TextInteractionFlag</a></b> { NoTextInteraction, TextSelectableByMouse, TextSelectableByKeyboard, LinksAccessibleByMouse, ..., TextBrowserInteraction }</li>
<li><div class="fn"/>flags <b><a href="qt.html#TextInteractionFlag-enum">TextInteractionFlags</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#TimeSpec-enum">TimeSpec</a></b> { LocalTime, UTC }</li>
<li><div class="fn"/>enum <b><a href="qt.html#ToolBarArea-enum">ToolBarArea</a></b> { LeftToolBarArea, RightToolBarArea, TopToolBarArea, BottomToolBarArea, AllToolBarAreas, NoToolBarArea }</li>
<li><div class="fn"/>flags <b><a href="qt.html#ToolBarArea-enum">ToolBarAreas</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#ToolButtonStyle-enum">ToolButtonStyle</a></b> { ToolButtonIconOnly, ToolButtonTextOnly, ToolButtonTextBesideIcon, ToolButtonTextUnderIcon }</li>
<li><div class="fn"/>enum <b><a href="qt.html#TransformationMode-enum">TransformationMode</a></b> { FastTransformation, SmoothTransformation }</li>
<li><div class="fn"/>enum <b><a href="qt.html#UIEffect-enum">UIEffect</a></b> { UI_AnimateMenu, UI_FadeMenu, UI_AnimateCombo, UI_AnimateTooltip, UI_FadeTooltip, UI_AnimateToolBox }</li>
<li><div class="fn"/>typedef <b><a href="qt.html#WFlags-typedef">WFlags</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#WhiteSpaceMode-enum">WhiteSpaceMode</a></b> { WhiteSpaceNormal, WhiteSpacePre, WhiteSpaceNoWrap }</li>
<li><div class="fn"/>enum <b><a href="qt.html#WidgetAttribute-enum">WidgetAttribute</a></b> { WA_AcceptDrops, WA_AlwaysShowToolTips, WA_ContentsPropagated, WA_CustomWhatsThis, ..., WA_StyledBackground }</li>
<li><div class="fn"/>flags <b><a href="qt.html#WindowType-enum">WindowFlags</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#WindowModality-enum">WindowModality</a></b> { NonModal, WindowModal, ApplicationModal }</li>
<li><div class="fn"/>enum <b><a href="qt.html#WindowState-enum">WindowState</a></b> { WindowNoState, WindowMinimized, WindowMaximized, WindowFullScreen, WindowActive }</li>
<li><div class="fn"/>flags <b><a href="qt.html#WindowState-enum">WindowStates</a></b></li>
<li><div class="fn"/>enum <b><a href="qt.html#WindowType-enum">WindowType</a></b> { Widget, Window, Dialog, Sheet, ..., WMacNoSheet }</li>
</ul>
<a name="functions"></a>
<h3>Functions</h3>
<ul>
<li><div class="fn"/>QString <b><a href="qt.html#convertFromPlainText">convertFromPlainText</a></b> ( const QString &amp; <i>plain</i>, WhiteSpaceMode <i>mode</i> = WhiteSpacePre )</li>
<li><div class="fn"/>QString <b><a href="qt.html#escape">escape</a></b> ( const QString &amp; <i>plain</i> )</li>
<li><div class="fn"/>bool <b><a href="qt.html#mightBeRichText">mightBeRichText</a></b> ( const QString &amp; <i>text</i> )</li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The Qt namespace contains miscellaneous identifiers used throughout the Qt library.</p>
<hr />
<h2>Type Documentation</h2>
<h3 class="flags"><a name="AlignmentFlag-enum"></a>enum Qt::AlignmentFlag<br />flags Qt::Alignment</h3>
<p>This enum type is used to describe alignment. It contains horizontal and vertical flags that can be combined to produce the required effect.</p>
<p>The <a href="qt.html#TextElideMode-enum">TextElideMode</a> enum can also be used in many situations to fine-tune the appearance of aligned text.</p>
<p>The horizontal flags are:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::AlignLeft</tt></td><td align="center" valign="top"><tt>0x0001</tt></td><td valign="top">Aligns with the left edge.</td></tr>
<tr><td valign="top"><tt>Qt::AlignRight</tt></td><td align="center" valign="top"><tt>0x0002</tt></td><td valign="top">Aligns with the right edge.</td></tr>
<tr><td valign="top"><tt>Qt::AlignHCenter</tt></td><td align="center" valign="top"><tt>0x0004</tt></td><td valign="top">Centers horizontally in the available space.</td></tr>
<tr><td valign="top"><tt>Qt::AlignJustify</tt></td><td align="center" valign="top"><tt>0x0008</tt></td><td valign="top">Justifies the text in the available space.</td></tr>
</table></p>
<p>The vertical flags are:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::AlignTop</tt></td><td align="center" valign="top"><tt>0x0020</tt></td><td valign="top">Aligns with the top.</td></tr>
<tr><td valign="top"><tt>Qt::AlignBottom</tt></td><td align="center" valign="top"><tt>0x0040</tt></td><td valign="top">Aligns with the bottom.</td></tr>
<tr><td valign="top"><tt>Qt::AlignVCenter</tt></td><td align="center" valign="top"><tt>0x0080</tt></td><td valign="top">Centers vertically in the available space.</td></tr>
</table></p>
<p>You can use only one of the horizontal flags at a time. There is one two-dimensional flag:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::AlignCenter</tt></td><td align="center" valign="top"><tt>AlignVCenter | AlignHCenter</tt></td><td valign="top">Centers in both dimensions.</td></tr>
</table></p>
<p>You can use at most one horizontal and one vertical flag at a time. Qt::AlignCenter counts as both horizontal and vertical.</p>
<p>Three enum values are useful in applications that can be run in right-to-left mode:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::AlignAbsolute</tt></td><td align="center" valign="top"><tt>0x0010</tt></td><td valign="top">If the widget's layout direction is <a href="qt.html#LayoutDirection-enum">Qt::RightToLeft</a> (instead of <a href="qt.html#LayoutDirection-enum">Qt::LeftToRight</a>, the default), Qt::AlignLeft refers to the <i>right</i> edge and Qt::AlignRight to the <i>left</i> edge. This is normally the desired behavior. If you want Qt::AlignLeft to always mean &quot;left&quot; and Qt::AlignRight to always mean &quot;right&quot;, combine the flag with Qt::AlignAbsolute.</td></tr>
<tr><td valign="top"><tt>Qt::AlignLeading</tt></td><td align="center" valign="top"><tt>AlignLeft</tt></td><td valign="top">Synonym for Qt::AlignLeft.</td></tr>
<tr><td valign="top"><tt>Qt::AlignTrailing</tt></td><td align="center" valign="top"><tt>AlignRight</tt></td><td valign="top">Synonym for Qt::AlignRight.</td></tr>
</table></p>
<p>Masks:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="40%">
<tr><th width="60%">Constant</th><th width="40%">Value</th></tr>
<tr><td valign="top"><tt>Qt::AlignHorizontal_Mask</tt></td><td align="center" valign="top"><tt>AlignLeft | AlignRight | AlignHCenter | AlignJustify | AlignAbsolute</tt></td></tr>
<tr><td valign="top"><tt>Qt::AlignVertical_Mask</tt></td><td align="center" valign="top"><tt>AlignTop | AlignBottom | AlignVCenter</tt></td></tr>
</table></p>
<p>Conflicting combinations of flags have undefined meanings.</p>
<p>The Alignment type is a typedef for <a href="qflags.html">QFlags</a>&lt;AlignmentFlag&gt;. It stores an OR combination of AlignmentFlag values.</p>
<h3 class="fn"><a name="AnchorAttribute-enum"></a>enum Qt::AnchorAttribute</h3>
<p>An anchor has one or more of the following attributes:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::AnchorName</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">the name attribute of the anchor. This attribute is used when scrolling to an anchor in the document.</td></tr>
<tr><td valign="top"><tt>Qt::AnchorHref</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">the href attribute of the anchor. This attribute is used when a link is clicked to determine what content to load.</td></tr>
</table></p>
<h3 class="fn"><a name="ApplicationAttribute-enum"></a>enum Qt::ApplicationAttribute</h3>
<p>This enum describes attributes that change the behavior of application-wide features. These are enabled and disabled using <a href="qcoreapplication.html#setAttribute">QCoreApplication::setAttribute</a>(), and can be tested for with <a href="qcoreapplication.html#testAttribute">QCoreApplication::testAttribute</a>().</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::AA_ImmediateWidgetCreation</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Ensures that widgets are created as soon as they are constructed. By default, resources for widgets are allocated on demand to improve efficiency and minimize resource usage. Setting or clearing this attribute affects widgets constructed after the change. Setting it tells Qt to create toplevel windows immediately. Therefore, if it is important to minimize resource consumption, do not set this attribute.</td></tr>
<tr><td valign="top"><tt>Qt::AA_MSWindowsUseDirect3DByDefault</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Is a Windows specific attribute, that will make the Direct3D paint engine the default Qt widget paint engine. Note that you can toggle usage of the Direct3D engine on individual QWidgets by setting/clearing the <tt>WA_MSWindowsUseDirect3D</tt> attribute on a specific widget. <b>This functionality is experimental</b>.</td></tr>
</table></p>
<h3 class="fn"><a name="ArrowType-enum"></a>enum Qt::ArrowType</h3>
<p><table border="1" cellpadding="2" cellspacing="1" width="40%">
<tr><th width="60%">Constant</th><th width="40%">Value</th></tr>
<tr><td valign="top"><tt>Qt::NoArrow</tt></td><td align="center" valign="top"><tt>0</tt></td></tr>
<tr><td valign="top"><tt>Qt::UpArrow</tt></td><td align="center" valign="top"><tt>1</tt></td></tr>
<tr><td valign="top"><tt>Qt::DownArrow</tt></td><td align="center" valign="top"><tt>2</tt></td></tr>
<tr><td valign="top"><tt>Qt::LeftArrow</tt></td><td align="center" valign="top"><tt>3</tt></td></tr>
<tr><td valign="top"><tt>Qt::RightArrow</tt></td><td align="center" valign="top"><tt>4</tt></td></tr>
</table></p>
<h3 class="fn"><a name="AspectRatioMode-enum"></a>enum Qt::AspectRatioMode</h3>
<p>This enum type defines what happens to the aspect ratio when scaling an rectangle.</p>
<p align="center"><img src="images/qimage-scaling.png" /></p><p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::IgnoreAspectRatio</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The size is scaled freely. The aspect ratio is not preserved.</td></tr>
<tr><td valign="top"><tt>Qt::KeepAspectRatio</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The size is scaled to a rectangle as large as possible inside a given rectangle, preserving the aspect ratio.</td></tr>
<tr><td valign="top"><tt>Qt::KeepAspectRatioByExpanding</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The size is scaled to a rectangle as small as possible outside a given rectangle, preserving the aspect ratio.</td></tr>
</table></p>
<p>See also <a href="qsize.html#scale">QSize::scale</a>() and <a href="qimage.html#scaled">QImage::scaled</a>().</p>
<h3 class="fn"><a name="Axis-enum"></a>enum Qt::Axis</h3>
<p>This enum type defines three values to represent the three axes in the cartesian coordinate system.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::XAxis</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The X axis.</td></tr>
<tr><td valign="top"><tt>Qt::YAxis</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The Y axis.</td></tr>
<tr><td valign="top"><tt>Qt::ZAxis</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The Z axis.</td></tr>
</table></p>
<p>See also <a href="qtransform.html#rotate">QTransform::rotate</a>() and <a href="qtransform.html#rotateRadians">QTransform::rotateRadians</a>().</p>
<h3 class="fn"><a name="BGMode-enum"></a>enum Qt::BGMode</h3>
<p>Background mode:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="40%">
<tr><th width="60%">Constant</th><th width="40%">Value</th></tr>
<tr><td valign="top"><tt>Qt::TransparentMode</tt></td><td align="center" valign="top"><tt>0</tt></td></tr>
<tr><td valign="top"><tt>Qt::OpaqueMode</tt></td><td align="center" valign="top"><tt>1</tt></td></tr>
</table></p>
<h3 class="fn"><a name="BrushStyle-enum"></a>enum Qt::BrushStyle</h3>
<p>This enum type defines the brush styles supported by Qt, i.e&#x2e; the fill pattern of shapes drawn using <a href="qpainter.html">QPainter</a>.</p>
<p align="center"><img src="images/brush-styles.png" alt="Brush Styles" /></p><p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::NoBrush</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">No brush pattern.</td></tr>
<tr><td valign="top"><tt>Qt::SolidPattern</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Uniform color.</td></tr>
<tr><td valign="top"><tt>Qt::Dense1Pattern</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Extremely dense brush pattern.</td></tr>
<tr><td valign="top"><tt>Qt::Dense2Pattern</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">Very dense brush pattern.</td></tr>
<tr><td valign="top"><tt>Qt::Dense3Pattern</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">Somewhat dense brush pattern.</td></tr>
<tr><td valign="top"><tt>Qt::Dense4Pattern</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">Half dense brush pattern.</td></tr>
<tr><td valign="top"><tt>Qt::Dense5Pattern</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">Somewhat sparse brush pattern.</td></tr>
<tr><td valign="top"><tt>Qt::Dense6Pattern</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">Very sparse brush pattern.</td></tr>
<tr><td valign="top"><tt>Qt::Dense7Pattern</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">Extremely sparse brush pattern.</td></tr>
<tr><td valign="top"><tt>Qt::HorPattern</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">Horizontal lines.</td></tr>
<tr><td valign="top"><tt>Qt::VerPattern</tt></td><td align="center" valign="top"><tt>10</tt></td><td valign="top">Vertical lines.</td></tr>
<tr><td valign="top"><tt>Qt::CrossPattern</tt></td><td align="center" valign="top"><tt>11</tt></td><td valign="top">Crossing horizontal and vertical lines.</td></tr>
<tr><td valign="top"><tt>Qt::BDiagPattern</tt></td><td align="center" valign="top"><tt>12</tt></td><td valign="top">Backward diagonal lines.</td></tr>
<tr><td valign="top"><tt>Qt::FDiagPattern</tt></td><td align="center" valign="top"><tt>13</tt></td><td valign="top">Forward diagonal lines.</td></tr>
<tr><td valign="top"><tt>Qt::DiagCrossPattern</tt></td><td align="center" valign="top"><tt>14</tt></td><td valign="top">Crossing diagonal lines.</td></tr>
<tr><td valign="top"><tt>Qt::LinearGradientPattern</tt></td><td align="center" valign="top"><tt>15</tt></td><td valign="top">Linear gradient (set using a dedicated <a href="qbrush.html">QBrush</a> constructor).</td></tr>
<tr><td valign="top"><tt>Qt::ConicalGradientPattern</tt></td><td align="center" valign="top"><tt>17</tt></td><td valign="top">Conical gradient (set using a dedicated <a href="qbrush.html">QBrush</a> constructor).</td></tr>
<tr><td valign="top"><tt>Qt::RadialGradientPattern</tt></td><td align="center" valign="top"><tt>16</tt></td><td valign="top">Radial gradient (set using a dedicated <a href="qbrush.html">QBrush</a> constructor).</td></tr>
<tr><td valign="top"><tt>Qt::TexturePattern</tt></td><td align="center" valign="top"><tt>24</tt></td><td valign="top">Custom pattern (see <a href="qbrush.html#setTexture">QBrush::setTexture</a>()).</td></tr>
</table></p>
<p>See also <a href="qbrush.html">QBrush</a>.</p>
<h3 class="fn"><a name="CaseSensitivity-enum"></a>enum Qt::CaseSensitivity</h3>
<p><table border="1" cellpadding="2" cellspacing="1" width="40%">
<tr><th width="60%">Constant</th><th width="40%">Value</th></tr>
<tr><td valign="top"><tt>Qt::CaseInsensitive</tt></td><td align="center" valign="top"><tt>0</tt></td></tr>
<tr><td valign="top"><tt>Qt::CaseSensitive</tt></td><td align="center" valign="top"><tt>1</tt></td></tr>
</table></p>
<h3 class="fn"><a name="CheckState-enum"></a>enum Qt::CheckState</h3>
<p>This enum describes the state of checkable items, controls, and widgets.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::Unchecked</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The item is unchecked.</td></tr>
<tr><td valign="top"><tt>Qt::PartiallyChecked</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The item is partially checked. Items in hierarchical models may be partially checked if some, but not all, of their children are checked.</td></tr>
<tr><td valign="top"><tt>Qt::Checked</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The item is checked.</td></tr>
</table></p>
<p>See also <a href="qcheckbox.html">QCheckBox</a>, <a href="qt.html#ItemFlag-enum">Qt::ItemFlags</a>, and <a href="qt.html#ItemDataRole-enum">Qt::ItemDataRole</a>.</p>
<h3 class="fn"><a name="ClipOperation-enum"></a>enum Qt::ClipOperation</h3>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::NoClip</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">This operation turns clipping off.</td></tr>
<tr><td valign="top"><tt>Qt::ReplaceClip</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Replaces the current clip path/rect/region with the one supplied in the function call.</td></tr>
<tr><td valign="top"><tt>Qt::IntersectClip</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Intersects the current clip path/rect/region with the one supplied in the function call.</td></tr>
<tr><td valign="top"><tt>Qt::UniteClip</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">Unites the current clip path/rect/region with the one supplied in the function call.</td></tr>
</table></p>
<h3 class="fn"><a name="ConnectionType-enum"></a>enum Qt::ConnectionType</h3>
<p>This enum describes the types of connection that can be used between signals and slots. In particular, it determines whether a particular signal is delivered to a slot immediately or queued for delivery at a later time.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::DirectConnection</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">When emitted, the signal is immediately delivered to the slot.</td></tr>
<tr><td valign="top"><tt>Qt::QueuedConnection</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">When emitted, the signal is queued until the event loop is able to deliver it to the slot.</td></tr>
<tr><td valign="top"><tt>Qt::BlockingQueuedConnection</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">Same as QueuedConnection, except that the current thread blocks until the slot has been delivered. This connection type should only be used for receivers in a different thread. Note that misuse of this type can lead to dead locks in your application.</td></tr>
<tr><td valign="top"><tt>Qt::AutoConnection</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">If the signal is emitted from the thread in which the receiving object lives, the slot is invoked directly, as with Qt::DirectConnection; otherwise the signal is queued, as with Qt::QueuedConnection.</td></tr>
</table></p>
<p>With queued connections, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message</p>
<pre> QObject::connect: Cannot queue arguments of type 'MyType'</pre>
<p>call <a href="qmetatype.html#qRegisterMetaType">qRegisterMetaType</a>() to register the data type before you establish the connection.</p>
<p>See also <a href="threads.html">Thread Support in Qt</a>, <a href="qobject.html#connect">QObject::connect</a>(), and <a href="qmetatype.html#qRegisterMetaType">qRegisterMetaType</a>().</p>
<h3 class="fn"><a name="ContextMenuPolicy-enum"></a>enum Qt::ContextMenuPolicy</h3>
<p>This enum type defines the various policies a widget can have with respect to showing a context menu.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::NoContextMenu</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">the widget does not feature a context menu, context menu handling is deferred to the widget's parent.</td></tr>
<tr><td valign="top"><tt>Qt::PreventContextMenu</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">the widget does not feature a context menu, and in contrast to <tt>NoContextMenu</tt>, the handling is <i>not</i> deferred to the widget's parent. This means that all right mouse button events are guaranteed to be delivered to the widget itself through mousePressEvent(), and mouseReleaseEvent().</td></tr>
<tr><td valign="top"><tt>Qt::DefaultContextMenu</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">the widget's <a href="qwidget.html#contextMenuEvent">QWidget::contextMenuEvent</a>() handler is called.</td></tr>
<tr><td valign="top"><tt>Qt::ActionsContextMenu</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">the widget displays its <a href="qwidget.html#actions">QWidget::actions</a>() as context menu.</td></tr>
<tr><td valign="top"><tt>Qt::CustomContextMenu</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">the widget emits the <a href="qwidget.html#customContextMenuRequested">QWidget::customContextMenuRequested</a>() signal.</td></tr>
</table></p>
<h3 class="fn"><a name="Corner-enum"></a>enum Qt::Corner</h3>
<p>This enum type specifies a corner in a rectangle:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::TopLeftCorner</tt></td><td align="center" valign="top"><tt>0x00000</tt></td><td valign="top">The top-left corner of the rectangle.</td></tr>
<tr><td valign="top"><tt>Qt::TopRightCorner</tt></td><td align="center" valign="top"><tt>0x00001</tt></td><td valign="top">The top-right corner of the rectangle.</td></tr>
<tr><td valign="top"><tt>Qt::BottomLeftCorner</tt></td><td align="center" valign="top"><tt>0x00002</tt></td><td valign="top">The bottom-left corner of the rectangle.</td></tr>
<tr><td valign="top"><tt>Qt::BottomRightCorner</tt></td><td align="center" valign="top"><tt>0x00003</tt></td><td valign="top">The bottom-right corner of the rectangle.</td></tr>
</table></p>
<h3 class="fn"><a name="CursorShape-enum"></a>enum Qt::CursorShape</h3>
<p>This enum type defines the various cursors that can be used.</p>
<p>The standard arrow cursor is the default for widgets in a normal state.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::ArrowCursor</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top"><img src="images/cursor-arrow.png" /> The standard arrow cursor.</td></tr>
<tr><td valign="top"><tt>Qt::UpArrowCursor</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top"><img src="images/cursor-uparrow.png" /> An arrow pointing upwards toward the top of the screen.</td></tr>
<tr><td valign="top"><tt>Qt::CrossCursor</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top"><img src="images/cursor-cross.png" /> A crosshair cursor, typically used to help the user accurately select a point on the screen.</td></tr>
<tr><td valign="top"><tt>Qt::WaitCursor</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top"><img src="images/cursor-wait.png" /> An hourglass or watch cursor, usually shown during operations that prevent the user from interacting with the application.</td></tr>
<tr><td valign="top"><tt>Qt::IBeamCursor</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top"><img src="images/cursor-ibeam.png" /> A caret or ibeam cursor, indicating that a widget can accept and display text input.</td></tr>
<tr><td valign="top"><tt>Qt::SizeVerCursor</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top"><img src="images/cursor-sizev.png" /> A cursor used for elements that are used to vertically resize top-level windows.</td></tr>
<tr><td valign="top"><tt>Qt::SizeHorCursor</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top"><img src="images/cursor-sizeh.png" /> A cursor used for elements that are used to horizontally resize top-level windows.</td></tr>
<tr><td valign="top"><tt>Qt::SizeBDiagCursor</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top"><img src="images/cursor-sizeb.png" /> A cursor used for elements that are used to diagonally resize top-level windows at their top-right and bottom-left corners.</td></tr>
<tr><td valign="top"><tt>Qt::SizeFDiagCursor</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top"><img src="images/cursor-sizef.png" /> A cursor used for elements that are used to diagonally resize top-level windows at their top-left and bottom-right corners.</td></tr>
<tr><td valign="top"><tt>Qt::SizeAllCursor</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top"><img src="images/cursor-sizeall.png" /> A cursor used for elements that are used to resize top-level windows in any direction.</td></tr>
<tr><td valign="top"><tt>Qt::BlankCursor</tt></td><td align="center" valign="top"><tt>10</tt></td><td valign="top">A blank/invisible cursor, typically used when the cursor shape needs to be hidden.</td></tr>
<tr><td valign="top"><tt>Qt::SplitVCursor</tt></td><td align="center" valign="top"><tt>11</tt></td><td valign="top"><img src="images/cursor-vsplit.png" /> A cursor used for vertical splitters, indicating that a handle can be dragged horizontally to adjust the use of available space.</td></tr>
<tr><td valign="top"><tt>Qt::SplitHCursor</tt></td><td align="center" valign="top"><tt>12</tt></td><td valign="top"><img src="images/cursor-hsplit.png" /> A cursor used for horizontal splitters, indicating that a handle can be dragged vertically to adjust the use of available space.</td></tr>
<tr><td valign="top"><tt>Qt::PointingHandCursor</tt></td><td align="center" valign="top"><tt>13</tt></td><td valign="top"><img src="images/cursor-hand.png" /> A pointing hand cursor that is typically used for clickable elements such as hyperlinks.</td></tr>
<tr><td valign="top"><tt>Qt::ForbiddenCursor</tt></td><td align="center" valign="top"><tt>14</tt></td><td valign="top"><img src="images/cursor-forbidden.png" /> A slashed circle cursor, typically used during drag and drop operations to indicate that dragged content cannot be dropped on particular widgets or inside certain regions.</td></tr>
<tr><td valign="top"><tt>Qt::OpenHandCursor</tt></td><td align="center" valign="top"><tt>17</tt></td><td valign="top"><img src="images/cursor-openhand.png" /> A cursor representing an open hand, typically used to indicate that the area under the cursor is the visible part of a canvas that the user can click and drag in order to scroll around.</td></tr>
<tr><td valign="top"><tt>Qt::ClosedHandCursor</tt></td><td align="center" valign="top"><tt>18</tt></td><td valign="top"><img src="images/cursor-closedhand.png" /> A cursor representing a closed hand, typically used to indicate that a dragging operation is in progress that involves scrolling.</td></tr>
<tr><td valign="top"><tt>Qt::WhatsThisCursor</tt></td><td align="center" valign="top"><tt>15</tt></td><td valign="top"><img src="images/cursor-whatsthis.png" /> An arrow with a question mark, typically used</td></tr>
<tr><td valign="top"><tt>Qt::BusyCursor</tt></td><td align="center" valign="top"><tt>16</tt></td><td valign="top"><img src="images/cursor-wait.png" /> An hourglass or watch cursor, usually shown during operations that allow the user to interact with the application while they are performed in the background.</td></tr>
<tr><td valign="top"><tt>Qt::BitmapCursor</tt></td><td align="center" valign="top"><tt>24</tt></td><td valign="top">&nbsp;</td></tr>
</table></p>
<h3 class="fn"><a name="DateFormat-enum"></a>enum Qt::DateFormat</h3>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::TextDate</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The default Qt format.</td></tr>
<tr><td valign="top"><tt>Qt::ISODate</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">ISO 8601 extended format (YYYY-MM-DD, or with time, YYYY-MM-DDTHH:MM:SS).</td></tr>
<tr><td valign="top"><tt>Qt::LocalDate</tt></td><td align="center" valign="top"><tt>SystemLocaleDate</tt></td><td valign="top"><i>This attribute has been deprecated.</i> Use Qt::LocaleDate or Qt::SystemLocaleDate instead.</td></tr>
<tr><td valign="top"><tt>Qt::SystemLocaleDate</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The format used by the operating system.</td></tr>
<tr><td valign="top"><tt>Qt::LocaleDate</tt></td><td align="center" valign="top">?</td><td valign="top">The format used by the default application locale. This is the locale set with <a href="qlocale.html#setDefault">QLocale::setDefault</a>(), or the operating system locale if no default locale has been set.</td></tr>
</table></p>
<h3 class="fn"><a name="DayOfWeek-enum"></a>enum Qt::DayOfWeek</h3>
<p><table border="1" cellpadding="2" cellspacing="1" width="40%">
<tr><th width="60%">Constant</th><th width="40%">Value</th></tr>
<tr><td valign="top"><tt>Qt::Monday</tt></td><td align="center" valign="top"><tt>1</tt></td></tr>
<tr><td valign="top"><tt>Qt::Tuesday</tt></td><td align="center" valign="top"><tt>2</tt></td></tr>
<tr><td valign="top"><tt>Qt::Wednesday</tt></td><td align="center" valign="top"><tt>3</tt></td></tr>
<tr><td valign="top"><tt>Qt::Thursday</tt></td><td align="center" valign="top"><tt>4</tt></td></tr>
<tr><td valign="top"><tt>Qt::Friday</tt></td><td align="center" valign="top"><tt>5</tt></td></tr>
<tr><td valign="top"><tt>Qt::Saturday</tt></td><td align="center" valign="top"><tt>6</tt></td></tr>
<tr><td valign="top"><tt>Qt::Sunday</tt></td><td align="center" valign="top"><tt>7</tt></td></tr>
</table></p>
<h3 class="flags"><a name="DockWidgetArea-enum"></a>enum Qt::DockWidgetArea<br />flags Qt::DockWidgetAreas</h3>
<p><table border="1" cellpadding="2" cellspacing="1" width="40%">
<tr><th width="60%">Constant</th><th width="40%">Value</th></tr>
<tr><td valign="top"><tt>Qt::LeftDockWidgetArea</tt></td><td align="center" valign="top"><tt>0x1</tt></td></tr>
<tr><td valign="top"><tt>Qt::RightDockWidgetArea</tt></td><td align="center" valign="top"><tt>0x2</tt></td></tr>
<tr><td valign="top"><tt>Qt::TopDockWidgetArea</tt></td><td align="center" valign="top"><tt>0x4</tt></td></tr>
<tr><td valign="top"><tt>Qt::BottomDockWidgetArea</tt></td><td align="center" valign="top"><tt>0x8</tt></td></tr>
<tr><td valign="top"><tt>Qt::AllDockWidgetAreas</tt></td><td align="center" valign="top"><tt>DockWidgetArea_Mask</tt></td></tr>
<tr><td valign="top"><tt>Qt::NoDockWidgetArea</tt></td><td align="center" valign="top"><tt>0</tt></td></tr>
</table></p>
<p>The DockWidgetAreas type is a typedef for <a href="qflags.html">QFlags</a>&lt;DockWidgetArea&gt;. It stores an OR combination of DockWidgetArea values.</p>
<h3 class="flags"><a name="DropAction-enum"></a>enum Qt::DropAction<br />flags Qt::DropActions</h3>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::CopyAction</tt></td><td align="center" valign="top"><tt>0x1</tt></td><td valign="top">Copy the data to the target.</td></tr>
<tr><td valign="top"><tt>Qt::MoveAction</tt></td><td align="center" valign="top"><tt>0x2</tt></td><td valign="top">Move the data from the source to the target.</td></tr>
<tr><td valign="top"><tt>Qt::LinkAction</tt></td><td align="center" valign="top"><tt>0x4</tt></td><td valign="top">Create a link from the source to the target.</td></tr>
<tr><td valign="top"><tt>Qt::ActionMask</tt></td><td align="center" valign="top"><tt>0xff</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::IgnoreAction</tt></td><td align="center" valign="top"><tt>0x0</tt></td><td valign="top">Ignore the action (do nothing with the data).</td></tr>
</table></p>
<p>The DropActions type is a typedef for <a href="qflags.html">QFlags</a>&lt;DropAction&gt;. It stores an OR combination of DropAction values.</p>
<h3 class="fn"><a name="EventPriority-enum"></a>enum Qt::EventPriority</h3>
<p>This enum can be used to specify event priorities.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::HighEventPriority</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Events with this priority are sent before events with NormalEventPriority or LowEventPriority.</td></tr>
<tr><td valign="top"><tt>Qt::NormalEventPriority</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Events with this priority are sent after events with HighEventPriority, but before events with LowEventPriority.</td></tr>
<tr><td valign="top"><tt>Qt::LowEventPriority</tt></td><td align="center" valign="top"><tt>-1</tt></td><td valign="top">Events with this priority are sent after events with HighEventPriority or NormalEventPriority.</td></tr>
</table></p>
<p>Note that these values are provided purely for convenience, since event priorities can be any value between <tt>INT_MAX</tt> and <tt>INT_MIN</tt>, inclusive. For example, you can define custom priorities as being relative to each other:</p>
<pre> enum CustomEventPriority
 {
     <span class="comment">//</span> An important event
     ImportantEventPriority = Qt::HighEventPriority,

     <span class="comment">//</span> A more important event
     MoreImportantEventPriority = ImportantEventPriority + 1,

     <span class="comment">//</span> A critical event
     CriticalEventPriority = 100 * MoreImportantEventPriority,

     <span class="comment">//</span> Not that important
     StatusEventPriority = Qt::LowEventPriority,

     <span class="comment">//</span> These are less important than Status events
     IdleProcessingDoneEventPriority = StatusEventPriority - 1
 };</pre>
<p>See also <a href="qcoreapplication.html#postEvent">QCoreApplication::postEvent</a>().</p>
<h3 class="fn"><a name="FillRule-enum"></a>enum Qt::FillRule</h3>
<p>Specifies which method should be used to fill the paths and polygons.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::OddEvenFill</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Specifies that the region is filled using the odd even fill rule. With this rule, we determine whether a point is inside the shape by using the following method. Draw a horizontal line from the point to a location outside the shape, and count the number of intersections. If the number of intersections is an odd number, the point is inside the shape. This mode is the default.</td></tr>
<tr><td valign="top"><tt>Qt::WindingFill</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Specifies that the region is filled using the non zero winding rule. With this rule, we determine whether a point is inside the shape by using the following method. Draw a horizontal line from the point to a location outside the shape. Determine whether the direction of the line at each intersection point is up or down. The winding number is determined by summing the direction of each intersection. If the number is non zero, the point is inside the shape. This fill mode can also in most cases be considered as the intersection of closed shapes.</td></tr>
</table></p>
<h3 class="fn"><a name="FocusPolicy-enum"></a>enum Qt::FocusPolicy</h3>
<p>This enum type defines the various policies a widget can have with respect to acquiring keyboard focus.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::TabFocus</tt></td><td align="center" valign="top"><tt>0x1</tt></td><td valign="top">the widget accepts focus by tabbing.</td></tr>
<tr><td valign="top"><tt>Qt::ClickFocus</tt></td><td align="center" valign="top"><tt>0x2</tt></td><td valign="top">the widget accepts focus by clicking.</td></tr>
<tr><td valign="top"><tt>Qt::StrongFocus</tt></td><td align="center" valign="top"><tt>TabFocus | ClickFocus | 0x8</tt></td><td valign="top">the widget accepts focus by both tabbing and clicking. On Mac OS X this will also be indicate that the widget accepts tab focus when in 'Text/List focus mode'.</td></tr>
<tr><td valign="top"><tt>Qt::WheelFocus</tt></td><td align="center" valign="top"><tt>StrongFocus | 0x4</tt></td><td valign="top">like Qt::StrongFocus plus the widget accepts focus by using the mouse wheel.</td></tr>
<tr><td valign="top"><tt>Qt::NoFocus</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">the widget does not accept focus.</td></tr>
</table></p>
<h3 class="fn"><a name="FocusReason-enum"></a>enum Qt::FocusReason</h3>
<p>This enum specifies why the focus changed. It will be passed through QWidget::setFocus and can be retrieved in the <a href="qfocusevent.html">QFocusEvent</a> sent to the widget upon focus change.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::MouseFocusReason</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">A mouse action occurred.</td></tr>
<tr><td valign="top"><tt>Qt::TabFocusReason</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The Tab key was pressed.</td></tr>
<tr><td valign="top"><tt>Qt::BacktabFocusReason</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">A Backtab occurred. The input for this may include the Shift or Control keys; e.g&#x2e; Shift+Tab.</td></tr>
<tr><td valign="top"><tt>Qt::ActiveWindowFocusReason</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">The window system made this window either active or inactive.</td></tr>
<tr><td valign="top"><tt>Qt::PopupFocusReason</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">The application opened/closed a popup that grabbed/released the keyboard focus.</td></tr>
<tr><td valign="top"><tt>Qt::ShortcutFocusReason</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">The user typed a label's buddy shortcut</td></tr>
<tr><td valign="top"><tt>Qt::MenuBarFocusReason</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">The menu bar took focus.</td></tr>
<tr><td valign="top"><tt>Qt::OtherFocusReason</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">Another reason, usually application-specific.</td></tr>
</table></p>
<p>See also <a href="focus.html">Keyboard Focus</a>.</p>
<h3 class="fn"><a name="GlobalColor-enum"></a>enum Qt::GlobalColor</h3>
    <style type="text/css" id="colorstyles">
     #white { background-color: #ffffff; color: #000000 }
     #black { background-color: #000000; color: #ffffff }
     #red { background-color: #ff0000; color: #000000 }
     #darkRed { background-color: #800000; color: #ffffff }
     #green { background-color: #00ff00; color: #000000 }
     #darkGreen { background-color: #008000; color: #ffffff }
     #blue { background-color: #0000ff; color: #ffffff }
     #darkBlue { background-color: #000080; color: #ffffff }
     #cyan { background-color: #00ffff; color: #000000 }
     #darkCyan { background-color: #008080; color: #ffffff }
     #magenta { background-color: #ff00ff; color: #000000 }
     #darkMagenta { background-color: #800080; color: #ffffff }
     #yellow { background-color: #ffff00; color: #000000 }
     #darkYellow { background-color: #808000; color: #ffffff }
     #gray { background-color: #a0a0a4; color: #000000 }
     #darkGray { background-color: #808080; color: #ffffff }
     #lightGray { background-color: #c0c0c0; color: #000000 }
    </style>
    <p>Qt's predefined <a href="qcolor.html">QColor</a> objects:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::white</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">    White <tt id="white">(#ffffff)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::black</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">    Black <tt id="black">(#000000)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::red</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">    Red <tt id="red">(#ff0000)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::darkRed</tt></td><td align="center" valign="top"><tt>13</tt></td><td valign="top">    Dark red <tt id="darkRed">(#800000)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::green</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">    Green <tt id="green">(#00ff00)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::darkGreen</tt></td><td align="center" valign="top"><tt>14</tt></td><td valign="top">    Dark green <tt id="darkGreen">(#008000)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::blue</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">    Blue <tt id="blue">(#0000ff)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::darkBlue</tt></td><td align="center" valign="top"><tt>15</tt></td><td valign="top">    Dark blue <tt id="darkBlue">(#000080)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::cyan</tt></td><td align="center" valign="top"><tt>10</tt></td><td valign="top">    Cyan <tt id="cyan">(#00ffff)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::darkCyan</tt></td><td align="center" valign="top"><tt>16</tt></td><td valign="top">    Dark cyan <tt id="darkCyan">(#008080)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::magenta</tt></td><td align="center" valign="top"><tt>11</tt></td><td valign="top">    Magenta <tt id="magenta">(#ff00ff)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::darkMagenta</tt></td><td align="center" valign="top"><tt>17</tt></td><td valign="top">    Dark magenta <tt id="darkMagenta">(#800080)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::yellow</tt></td><td align="center" valign="top"><tt>12</tt></td><td valign="top">    Yellow <tt id="yellow">(#ffff00)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::darkYellow</tt></td><td align="center" valign="top"><tt>18</tt></td><td valign="top">    Dark yellow <tt id="darkYellow">(#808000)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::gray</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">    Gray <tt id="gray">(#a0a0a4)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::darkGray</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">    Dark gray <tt id="darkGray">(#808080)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::lightGray</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">    Light gray <tt id="lightGray">(#c0c0c0)</tt>
    </td></tr>
<tr><td valign="top"><tt>Qt::transparent</tt></td><td align="center" valign="top"><tt>19</tt></td><td valign="top">a transparent black value (i.e&#x2e;, <a href="qcolor.html">QColor</a>(0, 0, 0, 0))</td></tr>
<tr><td valign="top"><tt>Qt::color0</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">0 pixel value (for bitmaps)</td></tr>
<tr><td valign="top"><tt>Qt::color1</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">1 pixel value (for bitmaps)</td></tr>
</table></p>
<p>See also <a href="qcolor.html">QColor</a>.</p>
<h3 class="fn"><a name="HANDLE-typedef"></a>typedef Qt::HANDLE</h3>
<p>Platform-specific handle type for system objects. This is equivalent to <tt>void *</tt> on Windows and Mac OS X, and embedded Linux, and to <tt>unsigned long</tt> on X11.</p>
<p><b>Warning:</b> Using this type is not portable.</p>
<h3 class="fn"><a name="HitTestAccuracy-enum"></a>enum Qt::HitTestAccuracy</h3>
<p>This enum contains the types of accuracy that can be used by the <a href="qtextdocument.html">QTextDocument</a> class when testing for mouse clicks on text documents.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::ExactHit</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The point at which input occurred must coincide exactly with input-sensitive parts of the document.</td></tr>
<tr><td valign="top"><tt>Qt::FuzzyHit</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The point at which input occurred can lie close to input-sensitive parts of the document.</td></tr>
</table></p>
<p>This enum is defined in the <tt>&lt;QTextDocument&gt;</tt> header file.</p>
<h3 class="flags"><a name="ImageConversionFlag-enum"></a>enum Qt::ImageConversionFlag<br />flags Qt::ImageConversionFlags</h3>
<p>The options marked &quot;(default)&quot; are set if no other values from the list are included (since the defaults are zero):</p>
<p>Color/Mono preference (ignored for <a href="qbitmap.html">QBitmap</a>):</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::AutoColor</tt></td><td align="center" valign="top"><tt>0x00000000</tt></td><td valign="top">(default) - If the image has <a href="qimage.html#depth">depth</a> 1 and contains only black and white pixels, the pixmap becomes monochrome.</td></tr>
<tr><td valign="top"><tt>Qt::ColorOnly</tt></td><td align="center" valign="top"><tt>0x00000003</tt></td><td valign="top">The pixmap is dithered/converted to the <a href="qpixmap.html#defaultDepth">native display depth</a>.</td></tr>
<tr><td valign="top"><tt>Qt::MonoOnly</tt></td><td align="center" valign="top"><tt>0x00000002</tt></td><td valign="top">The pixmap becomes monochrome. If necessary, it is dithered using the chosen dithering algorithm.</td></tr>
</table></p>
<p>Dithering mode preference for RGB channels:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::DiffuseDither</tt></td><td align="center" valign="top"><tt>0x00000000</tt></td><td valign="top">(default) - A high-quality dither.</td></tr>
<tr><td valign="top"><tt>Qt::OrderedDither</tt></td><td align="center" valign="top"><tt>0x00000010</tt></td><td valign="top">A faster, more ordered dither.</td></tr>
<tr><td valign="top"><tt>Qt::ThresholdDither</tt></td><td align="center" valign="top"><tt>0x00000020</tt></td><td valign="top">No dithering; closest color is used.</td></tr>
</table></p>
<p>Dithering mode preference for alpha channel:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::ThresholdAlphaDither</tt></td><td align="center" valign="top"><tt>0x00000000</tt></td><td valign="top">(default) - No dithering.</td></tr>
<tr><td valign="top"><tt>Qt::OrderedAlphaDither</tt></td><td align="center" valign="top"><tt>0x00000004</tt></td><td valign="top">A faster, more ordered dither.</td></tr>
<tr><td valign="top"><tt>Qt::DiffuseAlphaDither</tt></td><td align="center" valign="top"><tt>0x00000008</tt></td><td valign="top">A high-quality dither.</td></tr>
</table></p>
<p>Color matching versus dithering preference:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::PreferDither</tt></td><td align="center" valign="top"><tt>0x00000040</tt></td><td valign="top">(default when converting to a pixmap) - Always dither 32-bit images when the image is converted to 8 bits.</td></tr>
<tr><td valign="top"><tt>Qt::AvoidDither</tt></td><td align="center" valign="top"><tt>0x00000080</tt></td><td valign="top">(default when converting for the purpose of saving to file) - Dither 32-bit images only if the image has more than 256 colors and it is being converted to 8 bits.</td></tr>
</table></p>
<p>The ImageConversionFlags type is a typedef for <a href="qflags.html">QFlags</a>&lt;ImageConversionFlag&gt;. It stores an OR combination of ImageConversionFlag values.</p>
<h3 class="fn"><a name="InputMethodQuery-enum"></a>enum Qt::InputMethodQuery</h3>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::ImMicroFocus</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The rectangle covering the area of the input cursor in widget coordinates.</td></tr>
<tr><td valign="top"><tt>Qt::ImFont</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The currently used font for text input.</td></tr>
<tr><td valign="top"><tt>Qt::ImCursorPosition</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The logical position of the cursor within the text surrounding the input area (see ImSurroundingText).</td></tr>
<tr><td valign="top"><tt>Qt::ImSurroundingText</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">The plain text around the input area, for example the current paragraph.</td></tr>
<tr><td valign="top"><tt>Qt::ImCurrentSelection</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">The currently selected text.</td></tr>
</table></p>
<h3 class="fn"><a name="ItemDataRole-enum"></a>enum Qt::ItemDataRole</h3>
<p>Each item in the model has a set of data elements associated with it, each with its own role. The roles are used by the view to indicate to the model which type of data it needs.</p>
<p>The general purpose roles are:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::DisplayRole</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The key data to be rendered (usually text).</td></tr>
<tr><td valign="top"><tt>Qt::DecorationRole</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The data to be rendered as a decoration (usually an icon).</td></tr>
<tr><td valign="top"><tt>Qt::EditRole</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The data in a form suitable for editing in an editor.</td></tr>
<tr><td valign="top"><tt>Qt::ToolTipRole</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">The data displayed in the item's tooltip.</td></tr>
<tr><td valign="top"><tt>Qt::StatusTipRole</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">The data displayed in the status bar.</td></tr>
<tr><td valign="top"><tt>Qt::WhatsThisRole</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">The data displayed for the item in &quot;What's This?&quot; mode.</td></tr>
<tr><td valign="top"><tt>Qt::SizeHintRole</tt></td><td align="center" valign="top"><tt>13</tt></td><td valign="top">The size hint for the item that will be supplied to views.</td></tr>
</table></p>
<p>Roles describing appearance and meta data:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::FontRole</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">The font used for items rendered with the default delegate.</td></tr>
<tr><td valign="top"><tt>Qt::TextAlignmentRole</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">The alignment of the text for items rendered with the default delegate.</td></tr>
<tr><td valign="top"><tt>Qt::BackgroundRole</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">The background brush used for items rendered with the default delegate.</td></tr>
<tr><td valign="top"><tt>Qt::BackgroundColorRole</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">This role is obsolete. Use BackgroundRole instead.</td></tr>
<tr><td valign="top"><tt>Qt::ForegroundRole</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">The foreground brush (text color, typically) used for items rendered with the default delegate.</td></tr>
<tr><td valign="top"><tt>Qt::TextColorRole</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">This role is obsolete. Use ForegroundRole instead.</td></tr>
<tr><td valign="top"><tt>Qt::CheckStateRole</tt></td><td align="center" valign="top"><tt>10</tt></td><td valign="top">This role is used to obtain the checked state of an item (see <a href="qt.html#CheckState-enum">Qt::CheckState</a>).</td></tr>
</table></p>
<p>Accessibility roles:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::AccessibleTextRole</tt></td><td align="center" valign="top"><tt>11</tt></td><td valign="top">The text to be used by accessibility extensions and plugins, such as screen readers.</td></tr>
<tr><td valign="top"><tt>Qt::AccessibleDescriptionRole</tt></td><td align="center" valign="top"><tt>12</tt></td><td valign="top">A description of the item for accessibility purposes.</td></tr>
</table></p>
<p>User roles:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::UserRole</tt></td><td align="center" valign="top"><tt>32</tt></td><td valign="top">The first role that can be used for application-specific purposes.</td></tr>
</table></p>
<h3 class="flags"><a name="ItemFlag-enum"></a>enum Qt::ItemFlag<br />flags Qt::ItemFlags</h3>
<p>This enum describes the properties of an item:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::ItemIsSelectable</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">It can be selected.</td></tr>
<tr><td valign="top"><tt>Qt::ItemIsEditable</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">It can be edited.</td></tr>
<tr><td valign="top"><tt>Qt::ItemIsDragEnabled</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">It can be dragged.</td></tr>
<tr><td valign="top"><tt>Qt::ItemIsDropEnabled</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">It can be used as a drop target.</td></tr>
<tr><td valign="top"><tt>Qt::ItemIsUserCheckable</tt></td><td align="center" valign="top"><tt>16</tt></td><td valign="top">It can be checked or unchecked by the user.</td></tr>
<tr><td valign="top"><tt>Qt::ItemIsEnabled</tt></td><td align="center" valign="top"><tt>32</tt></td><td valign="top">The user can interact with the item.</td></tr>
<tr><td valign="top"><tt>Qt::ItemIsTristate</tt></td><td align="center" valign="top"><tt>64</tt></td><td valign="top">The item is checkable with three separate states.</td></tr>
</table></p>
<p>Note that checkable items need to be given both a suitable set of flags and an initial state, indicating whether the item is checked or not. This is handled automatically for model/view components, but needs to be explicitly set for instances of <a href="qlistwidgetitem.html">QListWidgetItem</a>, <a href="qtablewidgetitem.html">QTableWidgetItem</a>, and <a href="qtreewidgetitem.html">QTreeWidgetItem</a>.</p>
<p>The ItemFlags type is a typedef for <a href="qflags.html">QFlags</a>&lt;ItemFlag&gt;. It stores an OR combination of ItemFlag values.</p>
<p>See also <a href="qabstractitemmodel.html">QAbstractItemModel</a>.</p>
<h3 class="fn"><a name="ItemSelectionMode-enum"></a>enum Qt::ItemSelectionMode</h3>
<p>This enum is used in <a href="qgraphicsitem.html">QGraphicsItem</a>, <a href="qgraphicsscene.html">QGraphicsScene</a> and <a href="qgraphicsview.html">QGraphicsView</a> to specify how items are selected, or how to determine if a shapes and items collide.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::ContainsItemShape</tt></td><td align="center" valign="top"><tt>0x0</tt></td><td valign="top">The output list contains only items whose <a href="qgraphicsitem.html#shape">shape</a> is fully contained inside the selection area. Items that intersect with the area's outline are not included.</td></tr>
<tr><td valign="top"><tt>Qt::IntersectsItemShape</tt></td><td align="center" valign="top"><tt>0x1</tt></td><td valign="top">The output list contains both items whose <a href="qgraphicsitem.html#shape">shape</a> is fully contained inside the selection area, and items that intersect with the area's outline. This is a common mode for rubber band selection.</td></tr>
<tr><td valign="top"><tt>Qt::ContainsItemBoundingRect</tt></td><td align="center" valign="top"><tt>0x2</tt></td><td valign="top">The output list contains only items whose <a href="qgraphicsitem.html#boundingRect">bounding rectangle</a> is fully contained inside the selection area. Items that intersect with the area's outline are not included.</td></tr>
<tr><td valign="top"><tt>Qt::IntersectsItemBoundingRect</tt></td><td align="center" valign="top"><tt>0x3</tt></td><td valign="top">The output list contains both items whose <a href="qgraphicsitem.html#boundingRect">bounding rectangle</a> is fully contained inside the selection area, and items that intersect with the area's outline. This method is commonly used for determining areas that need redrawing.</td></tr>
</table></p>
<p>See also <a href="qgraphicsscene.html#items">QGraphicsScene::items</a>(), <a href="qgraphicsscene.html#collidingItems">QGraphicsScene::collidingItems</a>(), <a href="qgraphicsview.html#items">QGraphicsView::items</a>(), <a href="qgraphicsitem.html#collidesWithItem">QGraphicsItem::collidesWithItem</a>(), and <a href="qgraphicsitem.html#collidesWithPath">QGraphicsItem::collidesWithPath</a>().</p>
<h3 class="fn"><a name="Key-enum"></a>enum Qt::Key</h3>
<p>The key names used by Qt.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::Key_Escape</tt></td><td align="center" valign="top"><tt>0x01000000</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Tab</tt></td><td align="center" valign="top"><tt>0x01000001</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Backtab</tt></td><td align="center" valign="top"><tt>0x01000002</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Backspace</tt></td><td align="center" valign="top"><tt>0x01000003</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Return</tt></td><td align="center" valign="top"><tt>0x01000004</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Enter</tt></td><td align="center" valign="top"><tt>0x01000005</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Insert</tt></td><td align="center" valign="top"><tt>0x01000006</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Delete</tt></td><td align="center" valign="top"><tt>0x01000007</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Pause</tt></td><td align="center" valign="top"><tt>0x01000008</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Print</tt></td><td align="center" valign="top"><tt>0x01000009</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_SysReq</tt></td><td align="center" valign="top"><tt>0x0100000a</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Clear</tt></td><td align="center" valign="top"><tt>0x0100000b</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Home</tt></td><td align="center" valign="top"><tt>0x01000010</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_End</tt></td><td align="center" valign="top"><tt>0x01000011</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Left</tt></td><td align="center" valign="top"><tt>0x01000012</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Up</tt></td><td align="center" valign="top"><tt>0x01000013</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Right</tt></td><td align="center" valign="top"><tt>0x01000014</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Down</tt></td><td align="center" valign="top"><tt>0x01000015</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_PageUp</tt></td><td align="center" valign="top"><tt>0x01000016</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_PageDown</tt></td><td align="center" valign="top"><tt>0x01000017</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Shift</tt></td><td align="center" valign="top"><tt>0x01000020</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Control</tt></td><td align="center" valign="top"><tt>0x01000021</tt></td><td valign="top">On Mac OS X, this corresponds to the Command keys.</td></tr>
<tr><td valign="top"><tt>Qt::Key_Meta</tt></td><td align="center" valign="top"><tt>0x01000022</tt></td><td valign="top">On Mac OS X, this corresponds to the Control keys.</td></tr>
<tr><td valign="top"><tt>Qt::Key_Alt</tt></td><td align="center" valign="top"><tt>0x01000023</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_AltGr</tt></td><td align="center" valign="top"><tt>0x01001103</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_CapsLock</tt></td><td align="center" valign="top"><tt>0x01000024</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_NumLock</tt></td><td align="center" valign="top"><tt>0x01000025</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_ScrollLock</tt></td><td align="center" valign="top"><tt>0x01000026</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F1</tt></td><td align="center" valign="top"><tt>0x01000030</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F2</tt></td><td align="center" valign="top"><tt>0x01000031</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F3</tt></td><td align="center" valign="top"><tt>0x01000032</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F4</tt></td><td align="center" valign="top"><tt>0x01000033</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F5</tt></td><td align="center" valign="top"><tt>0x01000034</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F6</tt></td><td align="center" valign="top"><tt>0x01000035</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F7</tt></td><td align="center" valign="top"><tt>0x01000036</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F8</tt></td><td align="center" valign="top"><tt>0x01000037</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F9</tt></td><td align="center" valign="top"><tt>0x01000038</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F10</tt></td><td align="center" valign="top"><tt>0x01000039</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F11</tt></td><td align="center" valign="top"><tt>0x0100003a</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F12</tt></td><td align="center" valign="top"><tt>0x0100003b</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F13</tt></td><td align="center" valign="top"><tt>0x0100003c</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F14</tt></td><td align="center" valign="top"><tt>0x0100003d</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F15</tt></td><td align="center" valign="top"><tt>0x0100003e</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F16</tt></td><td align="center" valign="top"><tt>0x0100003f</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F17</tt></td><td align="center" valign="top"><tt>0x01000040</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F18</tt></td><td align="center" valign="top"><tt>0x01000041</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F19</tt></td><td align="center" valign="top"><tt>0x01000042</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F20</tt></td><td align="center" valign="top"><tt>0x01000043</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F21</tt></td><td align="center" valign="top"><tt>0x01000044</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F22</tt></td><td align="center" valign="top"><tt>0x01000045</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F23</tt></td><td align="center" valign="top"><tt>0x01000046</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F24</tt></td><td align="center" valign="top"><tt>0x01000047</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F25</tt></td><td align="center" valign="top"><tt>0x01000048</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F26</tt></td><td align="center" valign="top"><tt>0x01000049</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F27</tt></td><td align="center" valign="top"><tt>0x0100004a</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F28</tt></td><td align="center" valign="top"><tt>0x0100004b</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F29</tt></td><td align="center" valign="top"><tt>0x0100004c</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F30</tt></td><td align="center" valign="top"><tt>0x0100004d</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F31</tt></td><td align="center" valign="top"><tt>0x0100004e</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F32</tt></td><td align="center" valign="top"><tt>0x0100004f</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F33</tt></td><td align="center" valign="top"><tt>0x01000050</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F34</tt></td><td align="center" valign="top"><tt>0x01000051</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F35</tt></td><td align="center" valign="top"><tt>0x01000052</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Super_L</tt></td><td align="center" valign="top"><tt>0x01000053</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Super_R</tt></td><td align="center" valign="top"><tt>0x01000054</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Menu</tt></td><td align="center" valign="top"><tt>0x01000055</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hyper_L</tt></td><td align="center" valign="top"><tt>0x01000056</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hyper_R</tt></td><td align="center" valign="top"><tt>0x01000057</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Help</tt></td><td align="center" valign="top"><tt>0x01000058</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Direction_L</tt></td><td align="center" valign="top"><tt>0x01000059</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Direction_R</tt></td><td align="center" valign="top"><tt>0x01000060</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Space</tt></td><td align="center" valign="top"><tt>0x20</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Any</tt></td><td align="center" valign="top"><tt>Key_Space</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Exclam</tt></td><td align="center" valign="top"><tt>0x21</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_QuoteDbl</tt></td><td align="center" valign="top"><tt>0x22</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_NumberSign</tt></td><td align="center" valign="top"><tt>0x23</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dollar</tt></td><td align="center" valign="top"><tt>0x24</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Percent</tt></td><td align="center" valign="top"><tt>0x25</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Ampersand</tt></td><td align="center" valign="top"><tt>0x26</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Apostrophe</tt></td><td align="center" valign="top"><tt>0x27</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_ParenLeft</tt></td><td align="center" valign="top"><tt>0x28</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_ParenRight</tt></td><td align="center" valign="top"><tt>0x29</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Asterisk</tt></td><td align="center" valign="top"><tt>0x2a</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Plus</tt></td><td align="center" valign="top"><tt>0x2b</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Comma</tt></td><td align="center" valign="top"><tt>0x2c</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Minus</tt></td><td align="center" valign="top"><tt>0x2d</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Period</tt></td><td align="center" valign="top"><tt>0x2e</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Slash</tt></td><td align="center" valign="top"><tt>0x2f</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_0</tt></td><td align="center" valign="top"><tt>0x30</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_1</tt></td><td align="center" valign="top"><tt>0x31</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_2</tt></td><td align="center" valign="top"><tt>0x32</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_3</tt></td><td align="center" valign="top"><tt>0x33</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_4</tt></td><td align="center" valign="top"><tt>0x34</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_5</tt></td><td align="center" valign="top"><tt>0x35</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_6</tt></td><td align="center" valign="top"><tt>0x36</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_7</tt></td><td align="center" valign="top"><tt>0x37</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_8</tt></td><td align="center" valign="top"><tt>0x38</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_9</tt></td><td align="center" valign="top"><tt>0x39</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Colon</tt></td><td align="center" valign="top"><tt>0x3a</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Semicolon</tt></td><td align="center" valign="top"><tt>0x3b</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Less</tt></td><td align="center" valign="top"><tt>0x3c</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Equal</tt></td><td align="center" valign="top"><tt>0x3d</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Greater</tt></td><td align="center" valign="top"><tt>0x3e</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Question</tt></td><td align="center" valign="top"><tt>0x3f</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_At</tt></td><td align="center" valign="top"><tt>0x40</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_A</tt></td><td align="center" valign="top"><tt>0x41</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_B</tt></td><td align="center" valign="top"><tt>0x42</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_C</tt></td><td align="center" valign="top"><tt>0x43</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_D</tt></td><td align="center" valign="top"><tt>0x44</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_E</tt></td><td align="center" valign="top"><tt>0x45</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_F</tt></td><td align="center" valign="top"><tt>0x46</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_G</tt></td><td align="center" valign="top"><tt>0x47</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_H</tt></td><td align="center" valign="top"><tt>0x48</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_I</tt></td><td align="center" valign="top"><tt>0x49</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_J</tt></td><td align="center" valign="top"><tt>0x4a</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_K</tt></td><td align="center" valign="top"><tt>0x4b</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_L</tt></td><td align="center" valign="top"><tt>0x4c</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_M</tt></td><td align="center" valign="top"><tt>0x4d</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_N</tt></td><td align="center" valign="top"><tt>0x4e</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_O</tt></td><td align="center" valign="top"><tt>0x4f</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_P</tt></td><td align="center" valign="top"><tt>0x50</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Q</tt></td><td align="center" valign="top"><tt>0x51</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_R</tt></td><td align="center" valign="top"><tt>0x52</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_S</tt></td><td align="center" valign="top"><tt>0x53</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_T</tt></td><td align="center" valign="top"><tt>0x54</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_U</tt></td><td align="center" valign="top"><tt>0x55</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_V</tt></td><td align="center" valign="top"><tt>0x56</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_W</tt></td><td align="center" valign="top"><tt>0x57</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_X</tt></td><td align="center" valign="top"><tt>0x58</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Y</tt></td><td align="center" valign="top"><tt>0x59</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Z</tt></td><td align="center" valign="top"><tt>0x5a</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_BracketLeft</tt></td><td align="center" valign="top"><tt>0x5b</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Backslash</tt></td><td align="center" valign="top"><tt>0x5c</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_BracketRight</tt></td><td align="center" valign="top"><tt>0x5d</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_AsciiCircum</tt></td><td align="center" valign="top"><tt>0x5e</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Underscore</tt></td><td align="center" valign="top"><tt>0x5f</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_QuoteLeft</tt></td><td align="center" valign="top"><tt>0x60</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_BraceLeft</tt></td><td align="center" valign="top"><tt>0x7b</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Bar</tt></td><td align="center" valign="top"><tt>0x7c</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_BraceRight</tt></td><td align="center" valign="top"><tt>0x7d</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_AsciiTilde</tt></td><td align="center" valign="top"><tt>0x7e</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_nobreakspace</tt></td><td align="center" valign="top"><tt>0x0a0</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_exclamdown</tt></td><td align="center" valign="top"><tt>0x0a1</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_cent</tt></td><td align="center" valign="top"><tt>0x0a2</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_sterling</tt></td><td align="center" valign="top"><tt>0x0a3</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_currency</tt></td><td align="center" valign="top"><tt>0x0a4</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_yen</tt></td><td align="center" valign="top"><tt>0x0a5</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_brokenbar</tt></td><td align="center" valign="top"><tt>0x0a6</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_section</tt></td><td align="center" valign="top"><tt>0x0a7</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_diaeresis</tt></td><td align="center" valign="top"><tt>0x0a8</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_copyright</tt></td><td align="center" valign="top"><tt>0x0a9</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_ordfeminine</tt></td><td align="center" valign="top"><tt>0x0aa</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_guillemotleft</tt></td><td align="center" valign="top"><tt>0x0ab</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_notsign</tt></td><td align="center" valign="top"><tt>0x0ac</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_hyphen</tt></td><td align="center" valign="top"><tt>0x0ad</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_registered</tt></td><td align="center" valign="top"><tt>0x0ae</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_macron</tt></td><td align="center" valign="top"><tt>0x0af</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_degree</tt></td><td align="center" valign="top"><tt>0x0b0</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_plusminus</tt></td><td align="center" valign="top"><tt>0x0b1</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_twosuperior</tt></td><td align="center" valign="top"><tt>0x0b2</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_threesuperior</tt></td><td align="center" valign="top"><tt>0x0b3</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_acute</tt></td><td align="center" valign="top"><tt>0x0b4</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_mu</tt></td><td align="center" valign="top"><tt>0x0b5</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_paragraph</tt></td><td align="center" valign="top"><tt>0x0b6</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_periodcentered</tt></td><td align="center" valign="top"><tt>0x0b7</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_cedilla</tt></td><td align="center" valign="top"><tt>0x0b8</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_onesuperior</tt></td><td align="center" valign="top"><tt>0x0b9</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_masculine</tt></td><td align="center" valign="top"><tt>0x0ba</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_guillemotright</tt></td><td align="center" valign="top"><tt>0x0bb</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_onequarter</tt></td><td align="center" valign="top"><tt>0x0bc</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_onehalf</tt></td><td align="center" valign="top"><tt>0x0bd</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_threequarters</tt></td><td align="center" valign="top"><tt>0x0be</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_questiondown</tt></td><td align="center" valign="top"><tt>0x0bf</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Agrave</tt></td><td align="center" valign="top"><tt>0x0c0</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Aacute</tt></td><td align="center" valign="top"><tt>0x0c1</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Acircumflex</tt></td><td align="center" valign="top"><tt>0x0c2</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Atilde</tt></td><td align="center" valign="top"><tt>0x0c3</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Adiaeresis</tt></td><td align="center" valign="top"><tt>0x0c4</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Aring</tt></td><td align="center" valign="top"><tt>0x0c5</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_AE</tt></td><td align="center" valign="top"><tt>0x0c6</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Ccedilla</tt></td><td align="center" valign="top"><tt>0x0c7</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Egrave</tt></td><td align="center" valign="top"><tt>0x0c8</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Eacute</tt></td><td align="center" valign="top"><tt>0x0c9</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Ecircumflex</tt></td><td align="center" valign="top"><tt>0x0ca</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Ediaeresis</tt></td><td align="center" valign="top"><tt>0x0cb</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Igrave</tt></td><td align="center" valign="top"><tt>0x0cc</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Iacute</tt></td><td align="center" valign="top"><tt>0x0cd</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Icircumflex</tt></td><td align="center" valign="top"><tt>0x0ce</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Idiaeresis</tt></td><td align="center" valign="top"><tt>0x0cf</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_ETH</tt></td><td align="center" valign="top"><tt>0x0d0</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Ntilde</tt></td><td align="center" valign="top"><tt>0x0d1</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Ograve</tt></td><td align="center" valign="top"><tt>0x0d2</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Oacute</tt></td><td align="center" valign="top"><tt>0x0d3</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Ocircumflex</tt></td><td align="center" valign="top"><tt>0x0d4</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Otilde</tt></td><td align="center" valign="top"><tt>0x0d5</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Odiaeresis</tt></td><td align="center" valign="top"><tt>0x0d6</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_multiply</tt></td><td align="center" valign="top"><tt>0x0d7</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Ooblique</tt></td><td align="center" valign="top"><tt>0x0d8</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Ugrave</tt></td><td align="center" valign="top"><tt>0x0d9</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Uacute</tt></td><td align="center" valign="top"><tt>0x0da</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Ucircumflex</tt></td><td align="center" valign="top"><tt>0x0db</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Udiaeresis</tt></td><td align="center" valign="top"><tt>0x0dc</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Yacute</tt></td><td align="center" valign="top"><tt>0x0dd</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_THORN</tt></td><td align="center" valign="top"><tt>0x0de</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_ssharp</tt></td><td align="center" valign="top"><tt>0x0df</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_division</tt></td><td align="center" valign="top"><tt>0x0f7</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_ydiaeresis</tt></td><td align="center" valign="top"><tt>0x0ff</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Multi_key</tt></td><td align="center" valign="top"><tt>0x01001120</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Codeinput</tt></td><td align="center" valign="top"><tt>0x01001137</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_SingleCandidate</tt></td><td align="center" valign="top"><tt>0x0100113c</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_MultipleCandidate</tt></td><td align="center" valign="top"><tt>0x0100113d</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_PreviousCandidate</tt></td><td align="center" valign="top"><tt>0x0100113e</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Mode_switch</tt></td><td align="center" valign="top"><tt>0x0100117e</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Kanji</tt></td><td align="center" valign="top"><tt>0x01001121</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Muhenkan</tt></td><td align="center" valign="top"><tt>0x01001122</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Henkan</tt></td><td align="center" valign="top"><tt>0x01001123</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Romaji</tt></td><td align="center" valign="top"><tt>0x01001124</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hiragana</tt></td><td align="center" valign="top"><tt>0x01001125</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Katakana</tt></td><td align="center" valign="top"><tt>0x01001126</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hiragana_Katakana</tt></td><td align="center" valign="top"><tt>0x01001127</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Zenkaku</tt></td><td align="center" valign="top"><tt>0x01001128</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hankaku</tt></td><td align="center" valign="top"><tt>0x01001129</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Zenkaku_Hankaku</tt></td><td align="center" valign="top"><tt>0x0100112a</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Touroku</tt></td><td align="center" valign="top"><tt>0x0100112b</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Massyo</tt></td><td align="center" valign="top"><tt>0x0100112c</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Kana_Lock</tt></td><td align="center" valign="top"><tt>0x0100112d</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Kana_Shift</tt></td><td align="center" valign="top"><tt>0x0100112e</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Eisu_Shift</tt></td><td align="center" valign="top"><tt>0x0100112f</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Eisu_toggle</tt></td><td align="center" valign="top"><tt>0x01001130</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hangul</tt></td><td align="center" valign="top"><tt>0x01001131</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hangul_Start</tt></td><td align="center" valign="top"><tt>0x01001132</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hangul_End</tt></td><td align="center" valign="top"><tt>0x01001133</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hangul_Hanja</tt></td><td align="center" valign="top"><tt>0x01001134</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hangul_Jamo</tt></td><td align="center" valign="top"><tt>0x01001135</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hangul_Romaja</tt></td><td align="center" valign="top"><tt>0x01001136</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hangul_Jeonja</tt></td><td align="center" valign="top"><tt>0x01001138</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hangul_Banja</tt></td><td align="center" valign="top"><tt>0x01001139</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hangul_PreHanja</tt></td><td align="center" valign="top"><tt>0x0100113a</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hangul_PostHanja</tt></td><td align="center" valign="top"><tt>0x0100113b</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hangul_Special</tt></td><td align="center" valign="top"><tt>0x0100113f</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Grave</tt></td><td align="center" valign="top"><tt>0x01001250</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Acute</tt></td><td align="center" valign="top"><tt>0x01001251</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Circumflex</tt></td><td align="center" valign="top"><tt>0x01001252</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Tilde</tt></td><td align="center" valign="top"><tt>0x01001253</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Macron</tt></td><td align="center" valign="top"><tt>0x01001254</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Breve</tt></td><td align="center" valign="top"><tt>0x01001255</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Abovedot</tt></td><td align="center" valign="top"><tt>0x01001256</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Diaeresis</tt></td><td align="center" valign="top"><tt>0x01001257</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Abovering</tt></td><td align="center" valign="top"><tt>0x01001258</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Doubleacute</tt></td><td align="center" valign="top"><tt>0x01001259</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Caron</tt></td><td align="center" valign="top"><tt>0x0100125a</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Cedilla</tt></td><td align="center" valign="top"><tt>0x0100125b</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Ogonek</tt></td><td align="center" valign="top"><tt>0x0100125c</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Iota</tt></td><td align="center" valign="top"><tt>0x0100125d</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Voiced_Sound</tt></td><td align="center" valign="top"><tt>0x0100125e</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Semivoiced_Sound</tt></td><td align="center" valign="top"><tt>0x0100125f</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Belowdot</tt></td><td align="center" valign="top"><tt>0x01001260</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Hook</tt></td><td align="center" valign="top"><tt>0x01001261</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Dead_Horn</tt></td><td align="center" valign="top"><tt>0x01001262</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Back</tt></td><td align="center" valign="top"><tt>0x01000061</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Forward</tt></td><td align="center" valign="top"><tt>0x01000062</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Stop</tt></td><td align="center" valign="top"><tt>0x01000063</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Refresh</tt></td><td align="center" valign="top"><tt>0x01000064</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_VolumeDown</tt></td><td align="center" valign="top"><tt>0x01000070</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_VolumeMute</tt></td><td align="center" valign="top"><tt>0x01000071</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_VolumeUp</tt></td><td align="center" valign="top"><tt>0x01000072</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_BassBoost</tt></td><td align="center" valign="top"><tt>0x01000073</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_BassUp</tt></td><td align="center" valign="top"><tt>0x01000074</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_BassDown</tt></td><td align="center" valign="top"><tt>0x01000075</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_TrebleUp</tt></td><td align="center" valign="top"><tt>0x01000076</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_TrebleDown</tt></td><td align="center" valign="top"><tt>0x01000077</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_MediaPlay</tt></td><td align="center" valign="top"><tt>0x01000080</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_MediaStop</tt></td><td align="center" valign="top"><tt>0x01000081</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_MediaPrevious</tt></td><td align="center" valign="top"><tt>0x01000082</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_MediaNext</tt></td><td align="center" valign="top"><tt>0x01000083</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_MediaRecord</tt></td><td align="center" valign="top"><tt>0x01000084</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_HomePage</tt></td><td align="center" valign="top"><tt>0x01000090</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Favorites</tt></td><td align="center" valign="top"><tt>0x01000091</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Search</tt></td><td align="center" valign="top"><tt>0x01000092</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Standby</tt></td><td align="center" valign="top"><tt>0x01000093</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_OpenUrl</tt></td><td align="center" valign="top"><tt>0x01000094</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_LaunchMail</tt></td><td align="center" valign="top"><tt>0x010000a0</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_LaunchMedia</tt></td><td align="center" valign="top"><tt>0x010000a1</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Launch0</tt></td><td align="center" valign="top"><tt>0x010000a2</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Launch1</tt></td><td align="center" valign="top"><tt>0x010000a3</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Launch2</tt></td><td align="center" valign="top"><tt>0x010000a4</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Launch3</tt></td><td align="center" valign="top"><tt>0x010000a5</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Launch4</tt></td><td align="center" valign="top"><tt>0x010000a6</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Launch5</tt></td><td align="center" valign="top"><tt>0x010000a7</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Launch6</tt></td><td align="center" valign="top"><tt>0x010000a8</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Launch7</tt></td><td align="center" valign="top"><tt>0x010000a9</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Launch8</tt></td><td align="center" valign="top"><tt>0x010000aa</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Launch9</tt></td><td align="center" valign="top"><tt>0x010000ab</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_LaunchA</tt></td><td align="center" valign="top"><tt>0x010000ac</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_LaunchB</tt></td><td align="center" valign="top"><tt>0x010000ad</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_LaunchC</tt></td><td align="center" valign="top"><tt>0x010000ae</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_LaunchD</tt></td><td align="center" valign="top"><tt>0x010000af</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_LaunchE</tt></td><td align="center" valign="top"><tt>0x010000b0</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_LaunchF</tt></td><td align="center" valign="top"><tt>0x010000b1</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_MediaLast</tt></td><td align="center" valign="top"><tt>0x0100ffff</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_unknown</tt></td><td align="center" valign="top"><tt>0x01ffffff</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Call</tt></td><td align="center" valign="top"><tt>0x01100004</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Context1</tt></td><td align="center" valign="top"><tt>0x01100000</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Context2</tt></td><td align="center" valign="top"><tt>0x01100001</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Context3</tt></td><td align="center" valign="top"><tt>0x01100002</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Context4</tt></td><td align="center" valign="top"><tt>0x01100003</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Flip</tt></td><td align="center" valign="top"><tt>0x01100006</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Hangup</tt></td><td align="center" valign="top"><tt>0x01100005</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_No</tt></td><td align="center" valign="top"><tt>0x01010002</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Select</tt></td><td align="center" valign="top"><tt>0x01010000</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Yes</tt></td><td align="center" valign="top"><tt>0x01010001</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Execute</tt></td><td align="center" valign="top"><tt>0x01020003</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Printer</tt></td><td align="center" valign="top"><tt>0x01020002</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Play</tt></td><td align="center" valign="top"><tt>0x01020005</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Sleep</tt></td><td align="center" valign="top"><tt>0x01020004</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Zoom</tt></td><td align="center" valign="top"><tt>0x01020006</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::Key_Cancel</tt></td><td align="center" valign="top"><tt>0x01020001</tt></td><td valign="top">&nbsp;</td></tr>
</table></p>
<p>See also <a href="qkeyevent.html#key">QKeyEvent::key</a>().</p>
<h3 class="flags"><a name="KeyboardModifier-enum"></a>enum Qt::KeyboardModifier<br />flags Qt::KeyboardModifiers</h3>
<p>This enum describes the modifier keys.</p>
<p><b>Note:</b> On Mac OS X, the <tt>ControlModifier</tt> value corresponds to the Command keys on the Macintosh keyboard, and the <tt>MetaModifier</tt> value corresponds to the Control keys. The <tt>KeypadModifier</tt> value will also be set when an arrow key is pressed as the arrow keys are considered part of the keypad.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::NoModifier</tt></td><td align="center" valign="top"><tt>0x00000000</tt></td><td valign="top">No modifier key is pressed.</td></tr>
<tr><td valign="top"><tt>Qt::ShiftModifier</tt></td><td align="center" valign="top"><tt>0x02000000</tt></td><td valign="top">A Shift key on the keyboard is pressed.</td></tr>
<tr><td valign="top"><tt>Qt::ControlModifier</tt></td><td align="center" valign="top"><tt>0x04000000</tt></td><td valign="top">A Ctrl key on the keyboard is pressed.</td></tr>
<tr><td valign="top"><tt>Qt::AltModifier</tt></td><td align="center" valign="top"><tt>0x08000000</tt></td><td valign="top">An Alt key on the keyboard is pressed.</td></tr>
<tr><td valign="top"><tt>Qt::MetaModifier</tt></td><td align="center" valign="top"><tt>0x10000000</tt></td><td valign="top">A Meta key on the keyboard is pressed.</td></tr>
<tr><td valign="top"><tt>Qt::KeypadModifier</tt></td><td align="center" valign="top"><tt>0x20000000</tt></td><td valign="top">A keypad button is pressed.</td></tr>
<tr><td valign="top"><tt>Qt::GroupSwitchModifier</tt></td><td align="center" valign="top"><tt>0x40000000</tt></td><td valign="top">X11 only. A Mode_switch key on the keyboard is pressed.</td></tr>
</table></p>
<p>The KeyboardModifiers type is a typedef for <a href="qflags.html">QFlags</a>&lt;KeyboardModifier&gt;. It stores an OR combination of KeyboardModifier values.</p>
<p>See also <a href="qt.html#MouseButton-enum">MouseButton</a> and <a href="qt.html#Modifier-enum">Modifier</a>.</p>
<h3 class="fn"><a name="LayoutDirection-enum"></a>enum Qt::LayoutDirection</h3>
<p>Specifies the direction of Qt's layouts:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::LeftToRight</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Left-to-right layout.</td></tr>
<tr><td valign="top"><tt>Qt::RightToLeft</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Right-to-left layout.</td></tr>
</table></p>
<p>Right-to-left layouts are necessary for certain languages, notably Arabic and Hebrew.</p>
<p>See also <a href="qapplication.html#layoutDirection-prop">QApplication::setLayoutDirection</a>() and <a href="qwidget.html#layoutDirection-prop">QWidget::setLayoutDirection</a>().</p>
<h3 class="fn"><a name="MaskMode-enum"></a>enum Qt::MaskMode</h3>
<p>This enum specifies the behavior of the <a href="qpixmap.html#createMaskFromColor">QPixmap::createMaskFromColor</a>() and <a href="qimage.html#createMaskFromColor">QImage::createMaskFromColor</a>() functions.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::MaskInColor</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Creates a mask where all pixels matching the given color are opaque.</td></tr>
<tr><td valign="top"><tt>Qt::MaskOutColor</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Creates a mask where all pixels matching the given color are transparent.</td></tr>
</table></p>
<h3 class="flags"><a name="MatchFlag-enum"></a>enum Qt::MatchFlag<br />flags Qt::MatchFlags</h3>
<p>This enum describes the type of matches that can be used when searching for items in a model.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::MatchExactly</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Performs <a href="qvariant.html">QVariant</a>-based matching.</td></tr>
<tr><td valign="top"><tt>Qt::MatchFixedString</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">Performs string-based matching. String-based comparisons are case-insensitive unless the <tt>MatchCaseSensitive</tt> flag is also specified.</td></tr>
<tr><td valign="top"><tt>Qt::MatchContains</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The search term is contained in the item.</td></tr>
<tr><td valign="top"><tt>Qt::MatchStartsWith</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The search term matches the start of the item.</td></tr>
<tr><td valign="top"><tt>Qt::MatchEndsWith</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">The search term matches the end of the item.</td></tr>
<tr><td valign="top"><tt>Qt::MatchCaseSensitive</tt></td><td align="center" valign="top"><tt>16</tt></td><td valign="top">The search is case sensitive.</td></tr>
<tr><td valign="top"><tt>Qt::MatchRegExp</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">Performs string-based matching using a regular expression as the search term.</td></tr>
<tr><td valign="top"><tt>Qt::MatchWildcard</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">Performs string-based matching using a string with wildcards as the search term.</td></tr>
<tr><td valign="top"><tt>Qt::MatchWrap</tt></td><td align="center" valign="top"><tt>32</tt></td><td valign="top">Perform a search that wraps around, so that when the search reaches the last item in the model, it begins again at the first item and continues until all items have been examined.</td></tr>
<tr><td valign="top"><tt>Qt::MatchRecursive</tt></td><td align="center" valign="top"><tt>64</tt></td><td valign="top">Searches the entire hierarchy.</td></tr>
</table></p>
<p>The MatchFlags type is a typedef for <a href="qflags.html">QFlags</a>&lt;MatchFlag&gt;. It stores an OR combination of MatchFlag values.</p>
<p>See also <a href="qstring.html#compare">QString::compare</a>() and <a href="qregexp.html">QRegExp</a>.</p>
<h3 class="fn"><a name="Modifier-enum"></a>enum Qt::Modifier</h3>
<p>This enum provides shorter names for the keyboard modifier keys supported by Qt.</p>
<p><b>Note:</b> On Mac OS X, the <tt>CTRL</tt> value corresponds to the Command keys on the Macintosh keyboard, and the <tt>META</tt> value corresponds to the Control keys.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::SHIFT</tt></td><td align="center" valign="top"><tt>Qt::ShiftModifier</tt></td><td valign="top">The Shift keys provided on all standard keyboards.</td></tr>
<tr><td valign="top"><tt>Qt::META</tt></td><td align="center" valign="top"><tt>Qt::MetaModifier</tt></td><td valign="top">The Meta keys.</td></tr>
<tr><td valign="top"><tt>Qt::CTRL</tt></td><td align="center" valign="top"><tt>Qt::ControlModifier</tt></td><td valign="top">The Ctrl keys.</td></tr>
<tr><td valign="top"><tt>Qt::ALT</tt></td><td align="center" valign="top"><tt>Qt::AltModifier</tt></td><td valign="top">The normal Alt keys, but not keys like AltGr.</td></tr>
<tr><td valign="top"><tt>Qt::UNICODE_ACCEL</tt></td><td align="center" valign="top"><tt>0x00000000</tt></td><td valign="top">The shortcut is specified as a Unicode code point, not as a Qt Key.</td></tr>
</table></p>
<p>See also <a href="qt.html#KeyboardModifier-enum">KeyboardModifier</a> and <a href="qt.html#MouseButton-enum">MouseButton</a>.</p>
<h3 class="flags"><a name="MouseButton-enum"></a>enum Qt::MouseButton<br />flags Qt::MouseButtons</h3>
<p>This enum type describes the different mouse buttons.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::NoButton</tt></td><td align="center" valign="top"><tt>0x00000000</tt></td><td valign="top">The button state does not refer to any button (see <a href="qmouseevent.html#button">QMouseEvent::button</a>()).</td></tr>
<tr><td valign="top"><tt>Qt::LeftButton</tt></td><td align="center" valign="top"><tt>0x00000001</tt></td><td valign="top">The left button is pressed, or an event refers to the left button. (The left button may be the right button on left-handed mice.)</td></tr>
<tr><td valign="top"><tt>Qt::RightButton</tt></td><td align="center" valign="top"><tt>0x00000002</tt></td><td valign="top">The right button.</td></tr>
<tr><td valign="top"><tt>Qt::MidButton</tt></td><td align="center" valign="top"><tt>0x00000004</tt></td><td valign="top">The middle button.</td></tr>
<tr><td valign="top"><tt>Qt::XButton1</tt></td><td align="center" valign="top"><tt>0x00000008</tt></td><td valign="top">The first X button.</td></tr>
<tr><td valign="top"><tt>Qt::XButton2</tt></td><td align="center" valign="top"><tt>0x00000010</tt></td><td valign="top">The second X button.</td></tr>
</table></p>
<p>The MouseButtons type is a typedef for <a href="qflags.html">QFlags</a>&lt;MouseButton&gt;. It stores an OR combination of MouseButton values.</p>
<p>See also <a href="qt.html#KeyboardModifier-enum">KeyboardModifier</a> and <a href="qt.html#Modifier-enum">Modifier</a>.</p>
<h3 class="flags"><a name="Orientation-enum"></a>enum Qt::Orientation<br />flags Qt::Orientations</h3>
<p>This type is used to signify an object's orientation.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="40%">
<tr><th width="60%">Constant</th><th width="40%">Value</th></tr>
<tr><td valign="top"><tt>Qt::Horizontal</tt></td><td align="center" valign="top"><tt>0x1</tt></td></tr>
<tr><td valign="top"><tt>Qt::Vertical</tt></td><td align="center" valign="top"><tt>0x2</tt></td></tr>
</table></p>
<p>Orientation is used with <a href="qscrollbar.html">QScrollBar</a> for example.</p>
<p>The Orientations type is a typedef for <a href="qflags.html">QFlags</a>&lt;Orientation&gt;. It stores an OR combination of Orientation values.</p>
<h3 class="fn"><a name="PenCapStyle-enum"></a>enum Qt::PenCapStyle</h3>
<p>This enum type defines the pen cap styles supported by Qt, i.e&#x2e; the line end caps that can be drawn using <a href="qpainter.html">QPainter</a>.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td><img src="images/qpen-square.png" /></td><td><img src="images/qpen-flat.png" /></td><td><img src="images/qpen-roundcap.png" /></td></tr>
<tr valign="top" class="even"><td>Qt::SquareCap</td><td>Qt::FlatCap</td><td>Qt::RoundCap</td></tr>
</table></p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::FlatCap</tt></td><td align="center" valign="top"><tt>0x00</tt></td><td valign="top">a square line end that does not cover the end point of the line.</td></tr>
<tr><td valign="top"><tt>Qt::SquareCap</tt></td><td align="center" valign="top"><tt>0x10</tt></td><td valign="top">a square line end that covers the end point and extends beyond it by half the line width.</td></tr>
<tr><td valign="top"><tt>Qt::RoundCap</tt></td><td align="center" valign="top"><tt>0x20</tt></td><td valign="top">a rounded line end.</td></tr>
</table></p>
<p>See also <a href="qpen.html">QPen</a>.</p>
<h3 class="fn"><a name="PenJoinStyle-enum"></a>enum Qt::PenJoinStyle</h3>
<p>This enum type defines the pen join styles supported by Qt, i.e&#x2e; which joins between two connected lines can be drawn using <a href="qpainter.html">QPainter</a>.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td><img src="images/qpen-bevel.png" /></td><td><img src="images/qpen-miter.png" /></td><td><img src="images/qpen-roundjoin.png" /></td></tr>
<tr valign="top" class="even"><td>Qt::BevelJoin</td><td>Qt::MiterJoin</td><td>Qt::RoundJoin</td></tr>
</table></p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::MiterJoin</tt></td><td align="center" valign="top"><tt>0x00</tt></td><td valign="top">The outer edges of the lines are extended to meet at an angle, and this area is filled.</td></tr>
<tr><td valign="top"><tt>Qt::BevelJoin</tt></td><td align="center" valign="top"><tt>0x40</tt></td><td valign="top">The triangular notch between the two lines is filled.</td></tr>
<tr><td valign="top"><tt>Qt::RoundJoin</tt></td><td align="center" valign="top"><tt>0x80</tt></td><td valign="top">A circular arc between the two lines is filled.</td></tr>
<tr><td valign="top"><tt>Qt::SvgMiterJoin</tt></td><td align="center" valign="top"><tt>0x100</tt></td><td valign="top">A miter join corresponding to the definition of a miter join in the <a href="http://www.w3.org/TR/SVGMobile12/">SVG 1.2 Tiny</a> specification.</td></tr>
</table></p>
<p>See also <a href="qpen.html">QPen</a>.</p>
<h3 class="fn"><a name="PenStyle-enum"></a>enum Qt::PenStyle</h3>
<p>This enum type defines the pen styles that can be drawn using <a href="qpainter.html">QPainter</a>. The styles are:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td><img src="images/qpen-solid.png" /></td><td><img src="images/qpen-dash.png" /></td><td><img src="images/qpen-dot.png" /></td></tr>
<tr valign="top" class="even"><td>Qt::SolidLine</td><td>Qt::DashLine</td><td>Qt::DotLine</td></tr>
<tr valign="top" class="odd"><td><img src="images/qpen-dashdot.png" /></td><td><img src="images/qpen-dashdotdot.png" /></td><td><img src="images/qpen-custom.png" /></td></tr>
<tr valign="top" class="even"><td>Qt::DashDotLine</td><td>Qt::DashDotDotLine</td><td>Qt::CustomDashLine</td></tr>
</table></p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::NoPen</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">no line at all. For example, <a href="qpainter.html#drawRect">QPainter::drawRect</a>() fills but does not draw any boundary line.</td></tr>
<tr><td valign="top"><tt>Qt::SolidLine</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">A plain line.</td></tr>
<tr><td valign="top"><tt>Qt::DashLine</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Dashes separated by a few pixels.</td></tr>
<tr><td valign="top"><tt>Qt::DotLine</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">Dots separated by a few pixels.</td></tr>
<tr><td valign="top"><tt>Qt::DashDotLine</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">Alternate dots and dashes.</td></tr>
<tr><td valign="top"><tt>Qt::DashDotDotLine</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">One dash, two dots, one dash, two dots.</td></tr>
<tr><td valign="top"><tt>Qt::CustomDashLine</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">A custom pattern defined using <a href="qpainterpathstroker.html#setDashPattern">QPainterPathStroker::setDashPattern</a>().</td></tr>
</table></p>
<p>See also <a href="qpen.html">QPen</a>.</p>
<h3 class="fn"><a name="ScrollBarPolicy-enum"></a>enum Qt::ScrollBarPolicy</h3>
<p>This enum type describes the various modes of <a href="qabstractscrollarea.html">QAbstractScrollArea</a>'s scroll bars.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::ScrollBarAsNeeded</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top"><a href="qabstractscrollarea.html">QAbstractScrollArea</a> shows a scroll bar when the content is too large to fit and not otherwise. This is the default.</td></tr>
<tr><td valign="top"><tt>Qt::ScrollBarAlwaysOff</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top"><a href="qabstractscrollarea.html">QAbstractScrollArea</a> never shows a scroll bar.</td></tr>
<tr><td valign="top"><tt>Qt::ScrollBarAlwaysOn</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top"><a href="qabstractscrollarea.html">QAbstractScrollArea</a> always shows a scroll bar.</td></tr>
</table></p>
<p>(The modes for the horizontal and vertical scroll bars are independent.)</p>
<h3 class="fn"><a name="ShortcutContext-enum"></a>enum Qt::ShortcutContext</h3>
<p>For a <a href="qevent.html#Type-enum">QEvent::Shortcut</a> event to occur, the shortcut's key sequence must be entered by the user in a context where the shortcut is active. The possible contexts are these:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::WidgetShortcut</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The shortcut is active when its parent widget has focus.</td></tr>
<tr><td valign="top"><tt>Qt::WindowShortcut</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The shortcut is active when its parent widget is a logical subwidget of the active top-level window.</td></tr>
<tr><td valign="top"><tt>Qt::ApplicationShortcut</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The shortcut is active when one of the applications windows are active.</td></tr>
</table></p>
<h3 class="fn"><a name="SortOrder-enum"></a>enum Qt::SortOrder</h3>
<p>This enum describes how the items in a widget are sorted.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::AscendingOrder</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The items are sorted ascending e.g&#x2e; starts with 'AAA' ends with 'ZZZ' in Latin-1 locales</td></tr>
<tr><td valign="top"><tt>Qt::DescendingOrder</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The items are sorted descending e.g&#x2e; starts with 'ZZZ' ends with 'AAA' in Latin-1 locales</td></tr>
</table></p>
<h3 class="fn"><a name="TextElideMode-enum"></a>enum Qt::TextElideMode</h3>
<p>This enum specifies where the ellipsis should appear when displaying texts that don't fit:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::ElideLeft</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The ellipsis should appear at the beginning of the text.</td></tr>
<tr><td valign="top"><tt>Qt::ElideRight</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The ellipsis should appear at the end of the text.</td></tr>
<tr><td valign="top"><tt>Qt::ElideMiddle</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The ellipsis should appear in the middle of the text.</td></tr>
<tr><td valign="top"><tt>Qt::ElideNone</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">Ellipsis should NOT appear in the text.</td></tr>
</table></p>
<p>Qt::ElideMiddle is normally the most appropriate choice for URLs (e.g&#x2e;, &quot;<a href="http://www.trolltech.com/careers/movingto/beijing/">http://www.troll..&#x2e;ovingto/beijing/</a>&quot;), whereas Qt::ElideRight is appropriate for other strings (e.g&#x2e;, &quot;<a href="http://doc.trolltech.com/qq/qq09-mac-deployment.html">Deploying Applications on Ma..&#x2e;</a>&quot;).</p>
<p>See also <a href="qabstractitemview.html#textElideMode-prop">QAbstractItemView::textElideMode</a>, <a href="qfontmetrics.html#elidedText">QFontMetrics::elidedText</a>(), <a href="qt.html#AlignmentFlag-enum">AlignmentFlag</a>, and <a href="qtabbar.html#elideMode-prop">QTabBar::elideMode</a>.</p>
<h3 class="fn"><a name="TextFlag-enum"></a>enum Qt::TextFlag</h3>
<p>This enum type is used to define some modifier flags. Some of these flags only make sense in the context of printing:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::TextSingleLine</tt></td><td align="center" valign="top"><tt>0x0100</tt></td><td valign="top">Treats all whitespace as spaces and prints just one line.</td></tr>
<tr><td valign="top"><tt>Qt::TextDontClip</tt></td><td align="center" valign="top"><tt>0x0200</tt></td><td valign="top">If it's impossible to stay within the given bounds, it prints outside.</td></tr>
<tr><td valign="top"><tt>Qt::TextExpandTabs</tt></td><td align="center" valign="top"><tt>0x0400</tt></td><td valign="top">Makes the U+0009 (ASCII tab) character move to the next tab stop.</td></tr>
<tr><td valign="top"><tt>Qt::TextShowMnemonic</tt></td><td align="center" valign="top"><tt>0x0800</tt></td><td valign="top">Displays the string &quot;&amp;P&quot; as <u>P</u> (see <a href="porting4.html#qbutton">QButton</a> for an example). For an ampersand, use &quot;&amp;&amp;&quot;.</td></tr>
<tr><td valign="top"><tt>Qt::TextWordWrap</tt></td><td align="center" valign="top"><tt>0x1000</tt></td><td valign="top">Breaks lines at appropriate points, e.g&#x2e; at word boundaries.</td></tr>
<tr><td valign="top"><tt>Qt::TextWrapAnywhere</tt></td><td align="center" valign="top"><tt>0x2000</tt></td><td valign="top">Breaks lines anywhere, even within words.</td></tr>
<tr><td valign="top"><tt>Qt::TextHideMnemonic</tt></td><td align="center" valign="top"><tt>0x8000</tt></td><td valign="top">Same as Qt::TextShowMnemonic but doesn't draw the underlines.</td></tr>
<tr><td valign="top"><tt>Qt::TextDontPrint</tt></td><td align="center" valign="top"><tt>0x4000</tt></td><td valign="top">Treat this text as &quot;hidden&quot; and don't print it.</td></tr>
<tr><td valign="top"><tt>Qt::TextIncludeTrailingSpaces</tt></td><td align="center" valign="top"><tt>0x08000000</tt></td><td valign="top">Don't automatically delete trailing whitespace.</td></tr>
<tr><td valign="top"><tt>Qt::TextJustificationForced</tt></td><td align="center" valign="top"><tt>0x10000</tt></td><td valign="top">Ensures that text lines are justified.</td></tr>
</table></p>
<p>You can use as many modifier flags as you want, except that Qt::TextSingleLine and Qt::TextWordWrap cannot be combined.</p>
<p>Flags that are inappropriate for a given use are generally ignored.</p>
<h3 class="fn"><a name="TextFormat-enum"></a>enum Qt::TextFormat</h3>
<p>This enum is used in widgets that can display both plain text and rich text, e.g&#x2e; <a href="qlabel.html">QLabel</a>. It is used for deciding whether a text string should be interpreted as one or the other. This is normally done by passing one of the enum values to a setTextFormat() function.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::PlainText</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The text string is interpreted as a plain text string.</td></tr>
<tr><td valign="top"><tt>Qt::RichText</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The text string is interpreted as a rich text string using the current <a href="q3stylesheet.html#defaultSheet">Q3StyleSheet::defaultSheet</a>().</td></tr>
<tr><td valign="top"><tt>Qt::AutoText</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The text string is interpreted as for Qt::RichText if <a href="qt.html#mightBeRichText">Qt::mightBeRichText</a>() returns true, otherwise as Qt::PlainText.</td></tr>
<tr><td valign="top"><tt>Qt::LogText</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">A special, limited text format which is only used by <a href="qtextedit.html">QTextEdit</a> in an optimized mode.</td></tr>
</table></p>
<h3 class="flags"><a name="TextInteractionFlag-enum"></a>enum Qt::TextInteractionFlag<br />flags Qt::TextInteractionFlags</h3>
<p>This enum specifies how a text displaying widget reacts to user input.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::NoTextInteraction</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">No interaction with the text is possible.</td></tr>
<tr><td valign="top"><tt>Qt::TextSelectableByMouse</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Text can be selected with the mouse and copied to the clipboard using a context menu or standard keyboard shortcuts.</td></tr>
<tr><td valign="top"><tt>Qt::TextSelectableByKeyboard</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Text can be selected with the cursor keys on the keyboard. A text cursor is shown.</td></tr>
<tr><td valign="top"><tt>Qt::LinksAccessibleByMouse</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">Links can be highlighted and activated with the mouse.</td></tr>
<tr><td valign="top"><tt>Qt::LinksAccessibleByKeyboard</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">Links can be focused using tab and activated with enter.</td></tr>
<tr><td valign="top"><tt>Qt::TextEditable</tt></td><td align="center" valign="top"><tt>16</tt></td><td valign="top">The text is fully editable.</td></tr>
<tr><td valign="top"><tt>Qt::TextEditorInteraction</tt></td><td align="center" valign="top"><tt>TextSelectableByMouse | TextSelectableByKeyboard | TextEditable</tt></td><td valign="top">The default for a text editor.</td></tr>
<tr><td valign="top"><tt>Qt::TextBrowserInteraction</tt></td><td align="center" valign="top"><tt>TextSelectableByMouse | LinksAccessibleByMouse | LinksAccessibleByKeyboard</tt></td><td valign="top">The default for <a href="qtextbrowser.html">QTextBrowser</a>.</td></tr>
</table></p>
<p>The TextInteractionFlags type is a typedef for <a href="qflags.html">QFlags</a>&lt;TextInteractionFlag&gt;. It stores an OR combination of TextInteractionFlag values.</p>
<h3 class="fn"><a name="TimeSpec-enum"></a>enum Qt::TimeSpec</h3>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::LocalTime</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Locale dependent time (Timezones and Daylight Savings Time).</td></tr>
<tr><td valign="top"><tt>Qt::UTC</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Coordinated Universal Time, replaces Greenwich Mean Time.</td></tr>
</table></p>
<h3 class="flags"><a name="ToolBarArea-enum"></a>enum Qt::ToolBarArea<br />flags Qt::ToolBarAreas</h3>
<p><table border="1" cellpadding="2" cellspacing="1" width="40%">
<tr><th width="60%">Constant</th><th width="40%">Value</th></tr>
<tr><td valign="top"><tt>Qt::LeftToolBarArea</tt></td><td align="center" valign="top"><tt>0x1</tt></td></tr>
<tr><td valign="top"><tt>Qt::RightToolBarArea</tt></td><td align="center" valign="top"><tt>0x2</tt></td></tr>
<tr><td valign="top"><tt>Qt::TopToolBarArea</tt></td><td align="center" valign="top"><tt>0x4</tt></td></tr>
<tr><td valign="top"><tt>Qt::BottomToolBarArea</tt></td><td align="center" valign="top"><tt>0x8</tt></td></tr>
<tr><td valign="top"><tt>Qt::AllToolBarAreas</tt></td><td align="center" valign="top"><tt>ToolBarArea_Mask</tt></td></tr>
<tr><td valign="top"><tt>Qt::NoToolBarArea</tt></td><td align="center" valign="top"><tt>0</tt></td></tr>
</table></p>
<p>The ToolBarAreas type is a typedef for <a href="qflags.html">QFlags</a>&lt;ToolBarArea&gt;. It stores an OR combination of ToolBarArea values.</p>
<h3 class="fn"><a name="ToolButtonStyle-enum"></a>enum Qt::ToolButtonStyle</h3>
<p>The style of the tool button, describing how the button's text and icon should be displayed.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::ToolButtonIconOnly</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Only display the icon.</td></tr>
<tr><td valign="top"><tt>Qt::ToolButtonTextOnly</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Only display the text.</td></tr>
<tr><td valign="top"><tt>Qt::ToolButtonTextBesideIcon</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The text appears beside the icon.</td></tr>
<tr><td valign="top"><tt>Qt::ToolButtonTextUnderIcon</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">The text appears under the icon.</td></tr>
</table></p>
<h3 class="fn"><a name="TransformationMode-enum"></a>enum Qt::TransformationMode</h3>
<p>This enum type defines whether image transformations (e.g&#x2e;, scaling) should be smooth or not.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::FastTransformation</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The transformation is performed quickly, with no smoothing.</td></tr>
<tr><td valign="top"><tt>Qt::SmoothTransformation</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The resulting image is transformed using bilinear filtering.</td></tr>
</table></p>
<p>See also <a href="qimage.html#scaled">QImage::scaled</a>().</p>
<h3 class="fn"><a name="UIEffect-enum"></a>enum Qt::UIEffect</h3>
<p>This enum describes the available UI effects.</p>
<p>By default, Qt will try to use the platform specific desktop settings for each effect. Use the <a href="qapplication.html#setDesktopSettingsAware">QApplication::setDesktopSettingsAware</a>() function (passing <tt>false</tt> as argument) to prevent this, and the <a href="qapplication.html#setEffectEnabled">QApplication::setEffectEnabled</a>() to enable or disable a particular effect.</p>
<p>Note that all effects are disabled on screens running at less than 16-bit color depth.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::UI_AnimateMenu</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Show animated menus.</td></tr>
<tr><td valign="top"><tt>Qt::UI_FadeMenu</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Show faded menus.</td></tr>
<tr><td valign="top"><tt>Qt::UI_AnimateCombo</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">Show animated comboboxes.</td></tr>
<tr><td valign="top"><tt>Qt::UI_AnimateTooltip</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">Show tooltip animations.</td></tr>
<tr><td valign="top"><tt>Qt::UI_FadeTooltip</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">Show tooltip fading effects.</td></tr>
<tr><td valign="top"><tt>Qt::UI_AnimateToolBox</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">Reserved</td></tr>
</table></p>
<p>See also <a href="qapplication.html#setEffectEnabled">QApplication::setEffectEnabled</a>() and <a href="qapplication.html#setDesktopSettingsAware">QApplication::setDesktopSettingsAware</a>().</p>
<h3 class="fn"><a name="WFlags-typedef"></a>typedef Qt::WFlags</h3>
<p>Synonym for <a href="qt.html#WindowType-enum">Qt::WindowFlags</a>.</p>
<h3 class="fn"><a name="WhiteSpaceMode-enum"></a>enum Qt::WhiteSpaceMode</h3>
<p>This enum describes the types of whitespace mode that are used by the <a href="qtextdocument.html">QTextDocument</a> class to meet the requirements of different kinds of textual information.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::WhiteSpaceNormal</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The whitespace mode used to display normal word wrapped text in paragraphs.</td></tr>
<tr><td valign="top"><tt>Qt::WhiteSpacePre</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">A preformatted text mode in which whitespace is reproduced exactly.</td></tr>
<tr><td valign="top"><tt>Qt::WhiteSpaceNoWrap</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">&nbsp;</td></tr>
</table></p>
<p>This enum is defined in the <tt>&lt;QTextDocument&gt;</tt> header file.</p>
<h3 class="fn"><a name="WidgetAttribute-enum"></a>enum Qt::WidgetAttribute</h3>
<a name="widget-attributes"></a><p>This enum type is used to specify various widget attributes. Attributes are set and cleared with <a href="qwidget.html#setAttribute">QWidget::setAttribute</a>(), and queried with <a href="qwidget.html#testAttribute">QWidget::testAttribute</a>(), although some have special convenience functions which are mentioned below.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::WA_AcceptDrops</tt></td><td align="center" valign="top"><tt>78</tt></td><td valign="top">Allows data from drag and drop operations to be dropped onto the widget (see <a href="qwidget.html#acceptDrops-prop">QWidget::setAcceptDrops</a>()).</td></tr>
<tr><td valign="top"><tt>Qt::WA_AlwaysShowToolTips</tt></td><td align="center" valign="top"><tt>84</tt></td><td valign="top">Enables tooltips for inactive windows.</td></tr>
<tr><td valign="top"><tt>Qt::WA_ContentsPropagated</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">This flag is superfluous and obsolete; it no longer has any effect. Since Qt 4.1, all widgets that do not set WA_PaintOnScreen propagate their contents.</td></tr>
<tr><td valign="top"><tt>Qt::WA_CustomWhatsThis</tt></td><td align="center" valign="top"><tt>47</tt></td><td valign="top">Indicates that the widget wants to continue operating normally in &quot;What's This?&quot; mode. This is set by the widget's author.</td></tr>
<tr><td valign="top"><tt>Qt::WA_DeleteOnClose</tt></td><td align="center" valign="top"><tt>55</tt></td><td valign="top">Makes Qt delete this widget when the widget has accepted the close event (see <a href="qwidget.html#closeEvent">QWidget::closeEvent</a>()).</td></tr>
<tr><td valign="top"><tt>Qt::WA_Disabled</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Indicates that the widget is disabled, i.e&#x2e; it does not receive any mouse or keyboard events. There is also a getter functions <a href="qwidget.html#enabled-prop">QWidget::isEnabled</a>(). This is set/cleared by the Qt kernel.</td></tr>
<tr><td valign="top"><tt>Qt::WA_ForceDisabled</tt></td><td align="center" valign="top"><tt>32</tt></td><td valign="top">Indicates that the widget is explicitly disabled, i.e&#x2e; it will remain disabled even when all its ancestors are set to the enabled state. This implies WA_Disabled. This is set/cleared by <a href="qwidget.html#enabled-prop">QWidget::setEnabled</a>() and <a href="qwidget.html#setDisabled">QWidget::setDisabled</a>().</td></tr>
<tr><td valign="top"><tt>Qt::WA_ForceUpdatesDisabled</tt></td><td align="center" valign="top"><tt>59</tt></td><td valign="top">Indicates that updates are explicitly disabled for the widget; i.e&#x2e; it will remain disabled even when all its ancestors are set to the updates-enabled state. This implies WA_UpdatesDisabled. This is set/cleared by <a href="qwidget.html#updatesEnabled-prop">QWidget::setUpdatesEnabled</a>().</td></tr>
<tr><td valign="top"><tt>Qt::WA_GroupLeader</tt></td><td align="center" valign="top"><tt>72</tt></td><td valign="top"><i>This attribute has been deprecated.</i> Use <a href="qwidget.html#windowModality-prop">QWidget::windowModality</a> instead.</td></tr>
<tr><td valign="top"><tt>Qt::WA_Hover</tt></td><td align="center" valign="top"><tt>74</tt></td><td valign="top">Forces Qt to generate paint events when the mouse enters or leaves the widget. This feature is typically used when implementing custom styles; see the <a href="widgets-styles.html">Styles</a> example for details.</td></tr>
<tr><td valign="top"><tt>Qt::WA_InputMethodEnabled</tt></td><td align="center" valign="top"><tt>14</tt></td><td valign="top">Enables input methods for Asian languages. Must be set when creating custom text editing widgets.</td></tr>
<tr><td valign="top"><tt>Qt::WA_KeyboardFocusChange</tt></td><td align="center" valign="top"><tt>77</tt></td><td valign="top">Set on a toplevel window when the users changes focus with the keyboard (tab, backtab, or shortcut).</td></tr>
<tr><td valign="top"><tt>Qt::WA_KeyCompression</tt></td><td align="center" valign="top"><tt>33</tt></td><td valign="top">Enables key event compression if set, and disables it if not set. By default key compression is off, so widgets receive one key press event for each key press (or more, since autorepeat is usually on). If you turn it on and your program doesn't keep up with key input, Qt may try to compress key events so that more than one character can be processed in each event. For example, a word processor widget might receive 2, 3 or more characters in each <a href="qkeyevent.html#text">QKeyEvent::text</a>(), if the layout recalculation takes too long for the CPU. If a widget supports multiple character unicode input, it is always safe to turn the compression on. Qt performs key event compression only for printable characters. <a href="qt.html#Modifier-enum">Qt::Modifier</a> keys, cursor movement keys, function keys and miscellaneous action keys (e.g&#x2e; Escape, Enter, Backspace, PrintScreen) will stop key event compression, even if there are more compressible key events available. Not all platforms support this compression, in which case turning it on will have no effect. This is set/cleared by the widget's author.</td></tr>
<tr><td valign="top"><tt>Qt::WA_LayoutOnEntireRect</tt></td><td align="center" valign="top"><tt>48</tt></td><td valign="top">Indicates that the widget wants <a href="qlayout.html">QLayout</a> to operate on the entire <a href="qwidget.html#rect-prop">QWidget::rect</a>(), not only on <a href="qwidget.html#contentsRect">QWidget::contentsRect</a>(). This is set by the widget's author.</td></tr>
<tr><td valign="top"><tt>Qt::WA_LayoutUsesWidgetRect</tt></td><td align="center" valign="top"><tt>92</tt></td><td valign="top">Ignore the layout item rect from the style when laying out this widget with <a href="qlayout.html">QLayout</a>. This makes a difference in <a href="qmacstyle.html">QMacStyle</a> and <a href="qplastiquestyle.html">QPlastiqueStyle</a> for some widgets.</td></tr>
<tr><td valign="top"><tt>Qt::WA_MacNoClickThrough</tt></td><td align="center" valign="top"><tt>12</tt></td><td valign="top">Indicates that the window is only activated when clicked.</td></tr>
<tr><td valign="top"><tt>Qt::WA_MacOpaqueSizeGrip</tt></td><td align="center" valign="top"><tt>85</tt></td><td valign="top">Indicates that the native Carbon size grip should be opaque instead of transparent (the default). This attribute is only applicable to Mac OS X and is set by the widget's author.</td></tr>
<tr><td valign="top"><tt>Qt::WA_MacShowFocusRect</tt></td><td align="center" valign="top"><tt>88</tt></td><td valign="top">Indicates that this widget should get a <a href="qfocusframe.html">QFocusFrame</a> around it. Some widgets draw their own focus halo regardless of this attribute. Not that the <a href="qwidget.html#focusPolicy-prop">QWidget::focusPolicy</a> also plays the main role in whether something is given focus or not, this only controls whether or not this gets the focus frame. This attribute is only applicable to Mac OS X.</td></tr>
<tr><td valign="top"><tt>Qt::WA_MacNormalSize</tt></td><td align="center" valign="top"><tt>89</tt></td><td valign="top">Indicates the widget should have the normal size for widgets in Mac OS X. This attribute is only applicable to Mac OS X.</td></tr>
<tr><td valign="top"><tt>Qt::WA_MacSmallSize</tt></td><td align="center" valign="top"><tt>90</tt></td><td valign="top">Indicates the widget should have the small size for widgets in Mac OS X. This attribute is only applicable to Mac OS X.</td></tr>
<tr><td valign="top"><tt>Qt::WA_MacMiniSize</tt></td><td align="center" valign="top"><tt>91</tt></td><td valign="top">Indicates the widget should have the mini size for widgets in Mac OS X. This attribute is only applicable to Mac OS X.</td></tr>
<tr><td valign="top"><tt>Qt::WA_MacBrushedMetal</tt></td><td align="center" valign="top"><tt>46</tt></td><td valign="top">Indicates the widget should be drawn in the brushed metal style as supported by the windowing system. This attribute is only applicable to Mac OS X.</td></tr>
<tr><td valign="top"><tt>Qt::WA_Mapped</tt></td><td align="center" valign="top"><tt>11</tt></td><td valign="top">Indicates that the widget is mapped on screen. This is set/cleared by the Qt kernel.</td></tr>
<tr><td valign="top"><tt>Qt::WA_MouseNoMask</tt></td><td align="center" valign="top"><tt>71</tt></td><td valign="top">Makes the widget receive mouse events for the entire widget regardless of the currently set mask, overriding <a href="qwidget.html#setMask">QWidget::setMask</a>().</td></tr>
<tr><td valign="top"><tt>Qt::WA_MouseTracking</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Indicates that the widget has mouse tracking enabled. See <a href="qwidget.html#mouseTracking-prop">QWidget::mouseTracking</a>.</td></tr>
<tr><td valign="top"><tt>Qt::WA_Moved</tt></td><td align="center" valign="top"><tt>43</tt></td><td valign="top">Indicates that the widget has an explicit position. This is set/cleared by <a href="qwidget.html#pos-prop">QWidget::move</a>() and by <a href="qwidget.html#geometry-prop">QWidget::setGeometry</a>().</td></tr>
<tr><td valign="top"><tt>Qt::WA_MSWindowsUseDirect3D</tt></td><td align="center" valign="top"><tt>94</tt></td><td valign="top">Makes drawing to a widget with this attribute set use the Direct3D paint engine, if the Direct3D paint engine is available. <b>This functionality is experimental.</b></td></tr>
<tr><td valign="top"><tt>Qt::WA_NoBackground</tt></td><td align="center" valign="top"><tt>WA_OpaquePaintEvent</tt></td><td valign="top">This value is obsolete. Use WA_OpaquePaintEvent instead.</td></tr>
<tr><td valign="top"><tt>Qt::WA_NoChildEventsForParent</tt></td><td align="center" valign="top"><tt>58</tt></td><td valign="top">Indicates that the widget does not want ChildAdded or ChildRemoved events sent to its parent. This is rarely necessary but can help to avoid automatic insertion widgets like splitters and layouts. This is set by a widget's author.</td></tr>
<tr><td valign="top"><tt>Qt::WA_NoChildEventsFromChildren</tt></td><td align="center" valign="top"><tt>39</tt></td><td valign="top">Indicates that the widget does not want to receive ChildAdded or ChildRemoved events sent from its children. This is set by a widget's author.</td></tr>
<tr><td valign="top"><tt>Qt::WA_NoMouseReplay</tt></td><td align="center" valign="top"><tt>54</tt></td><td valign="top">Used for popup widgets. Indicates that the most recent mouse press event should not be replayed when the popup widget closes. The flag is set by the widget's author and cleared by the Qt kernel every time the widget receives a new mouse event.</td></tr>
<tr><td valign="top"><tt>Qt::WA_NoMousePropagation</tt></td><td align="center" valign="top"><tt>73</tt></td><td valign="top">Prohibits mouse events from being propagated to the widget's parent.</td></tr>
<tr><td valign="top"><tt>Qt::WA_NoSystemBackground</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">Indicates that the widget has no background, i.e&#x2e; when the widget receives paint events, the background is not automatically repainted. <b>Note:</b> Unlike WA_OpaquePaintEvent, newly exposed areas are <i>never</i> filled with the background (e.g after showing a window for the first time the user can see &quot;through&quot; it until the application processes the paint events). Setting this flag implicitly disables double buffering for the widget. This is set/cleared by the widget's author.</td></tr>
<tr><td valign="top"><tt>Qt::WA_OpaquePaintEvent</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">Indicates that the widget paints all its pixels when it receives a paint event. It is thus not required for operations like updating, resizing, scrolling and focus changes to erase the widget before generating paint events. Using WA_OpaquePaintEvent is a small optimization. It can help to reduce flicker on systems that do not provide double buffer support, and it avoids the computational cycles necessary to erase the background prior to paint. <b>Note:</b> Unlike WA_NoSystemBackground, WA_OpaquePaintEvent makes an effort to avoid transparent window backgrounds. This is set/cleared by the widget's author.</td></tr>
<tr><td valign="top"><tt>Qt::WA_OutsideWSRange</tt></td><td align="center" valign="top"><tt>49</tt></td><td valign="top">Indicates that the widget is outside the valid range of the window system's coordinate system. A widget outside the valid range cannot be mapped on screen. This is set/cleared by the Qt kernel.</td></tr>
<tr><td valign="top"><tt>Qt::WA_PaintOnScreen</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">Indicates that the widget wants to draw directly onto the screen. Widgets with this attribute set do not participate in composition management, i.e&#x2e; they cannot be semi-transparent or shine through semi-transparent overlapping widgets. This is only supported on X11. On Qtopia Core the flag currently only works when set on a top level widget and relies on support from the active screen driver. The flag is set or cleared by the widget's author. For rendering outside of Qt's paint system; e.g&#x2e; if you need to use native X11 painting primitives, you need to reimplement <a href="qwidget.html#paintEngine">QWidget::paintEngine</a>() to return 0 and set this flag.</td></tr>
<tr><td valign="top"><tt>Qt::WA_PaintOutsidePaintEvent</tt></td><td align="center" valign="top"><tt>13</tt></td><td valign="top">Makes it possible to use <a href="qpainter.html">QPainter</a> to paint on the widget outside <a href="qwidget.html#paintEvent">paintEvent()</a>. This is not supported on Windows, Mac OS X or Qtopia Core. We recommend that you use this attribute only when porting Qt 3 code to Qt 4.</td></tr>
<tr><td valign="top"><tt>Qt::WA_PaintUnclipped</tt></td><td align="center" valign="top"><tt>52</tt></td><td valign="top">Makes all painters operating on this widget unclipped. Children of this widget or other widgets in front of it do not clip the area the painter can paint on. This flag is only supported for widgets for which the WA_PaintOnScreen flag is set. The preferred way to do this in a cross platform way is to create a transparent widget that lies in front of the other widgets.</td></tr>
<tr><td valign="top"><tt>Qt::WA_PendingMoveEvent</tt></td><td align="center" valign="top"><tt>34</tt></td><td valign="top">Indicates that a move event is pending, e.g&#x2e; when a hidden widget was moved. This is set/cleared by the Qt kernel.</td></tr>
<tr><td valign="top"><tt>Qt::WA_PendingResizeEvent</tt></td><td align="center" valign="top"><tt>35</tt></td><td valign="top">Indicates that a resize event is pending, e.g&#x2e; when a hidden widget was resized. This is set/cleared by the Qt kernel.</td></tr>
<tr><td valign="top"><tt>Qt::WA_QuitOnClose</tt></td><td align="center" valign="top"><tt>76</tt></td><td valign="top">Makes Qt quit the application when the last widget with the attribute set has accepted closeEvent(). This behavior can be adjusted with the <a href="qapplication.html#quitOnLastWindowClosed-prop">QApplication::quitOnLastWindowClosed</a> property. By default the attribute is set for all widgets of type <a href="qt.html#WindowType-enum">Qt::Window</a>.</td></tr>
<tr><td valign="top"><tt>Qt::WA_Resized</tt></td><td align="center" valign="top"><tt>42</tt></td><td valign="top">Indicates that the widget has an explicit size. This is set/cleared by <a href="qwidget.html#size-prop">QWidget::resize</a>() and by <a href="qwidget.html#geometry-prop">QWidget::setGeometry</a>().</td></tr>
<tr><td valign="top"><tt>Qt::WA_RightToLeft</tt></td><td align="center" valign="top"><tt>56</tt></td><td valign="top">Indicates that the layout direction for the widget is right to left.</td></tr>
<tr><td valign="top"><tt>Qt::WA_SetCursor</tt></td><td align="center" valign="top"><tt>38</tt></td><td valign="top">Indicates that the widget has a cursor of its own. This is set/cleared by <a href="qwidget.html#cursor-prop">QWidget::setCursor</a>() and <a href="qwidget.html#cursor-prop">QWidget::unsetCursor</a>().</td></tr>
<tr><td valign="top"><tt>Qt::WA_SetFont</tt></td><td align="center" valign="top"><tt>37</tt></td><td valign="top">Indicates that the widget has a font of its own. This is set/cleared by <a href="qwidget.html#font-prop">QWidget::setFont</a>().</td></tr>
<tr><td valign="top"><tt>Qt::WA_SetPalette</tt></td><td align="center" valign="top"><tt>36</tt></td><td valign="top">Indicates that the widget has a palette of its own. This is set/cleared by <a href="qwidget.html#palette-prop">QWidget::setPalette</a>().</td></tr>
<tr><td valign="top"><tt>Qt::WA_SetStyle</tt></td><td align="center" valign="top"><tt>86</tt></td><td valign="top">Indicates that the widget has a style of its own. This is set/cleared by <a href="qwidget.html#setStyle">QWidget::setStyle</a>().</td></tr>
<tr><td valign="top"><tt>Qt::WA_ShowModal</tt></td><td align="center" valign="top"><tt>70</tt></td><td valign="top"><i>This attribute has been deprecated.</i> Use <a href="qwidget.html#windowModality-prop">QWidget::windowModality</a> instead.</td></tr>
<tr><td valign="top"><tt>Qt::WA_StaticContents</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">Indicates that the widget contents are north-west aligned and static. On resize, such a widget will receive paint events only for the newly visible part of itself. This is set/cleared by the widget's author.</td></tr>
<tr><td valign="top"><tt>Qt::WA_StyleSheet</tt></td><td align="center" valign="top"><tt>97</tt></td><td valign="top">Indicates that the widget is styled using a <a href="stylesheet.html">style sheet</a>.</td></tr>
<tr><td valign="top"><tt>Qt::WA_UnderMouse</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Indicates that the widget is under the mouse cursor. The value is not updated correctly during drag and drop operations. There is also a getter function <a href="qwidget.html#underMouse">QWidget::underMouse</a>(). This is set/cleared by the Qt kernel.</td></tr>
<tr><td valign="top"><tt>Qt::WA_UpdatesDisabled</tt></td><td align="center" valign="top"><tt>10</tt></td><td valign="top">Indicates that updates are blocked (including the system background). This flag must never be set/cleared by the widget author. It is set/cleared by the Qt kernel.</td></tr>
<tr><td valign="top"><tt>Qt::WA_WindowModified</tt></td><td align="center" valign="top"><tt>41</tt></td><td valign="top">Indicates that the window is marked as modified. On some platforms this will mean nothing, on others (including Mac OS X and Windows) the window will take a modified appearance. This is set/cleared by <a href="qwidget.html#windowModified-prop">QWidget::setWindowModified</a>().</td></tr>
<tr><td valign="top"><tt>Qt::WA_WindowPropagation</tt></td><td align="center" valign="top"><tt>80</tt></td><td valign="top">Makes a toplevel window inherit font and palette from its parent.</td></tr>
<tr><td valign="top"><tt>Qt::WA_MacAlwaysShowToolWindow</tt></td><td align="center" valign="top"><tt>96</tt></td><td valign="top">On Mac OS X, show the tool window even when the application is not active. By default, all tool windows are hidden when the application is inactive.</td></tr>
<tr><td valign="top"><tt>Qt::WA_SetLocale</tt></td><td align="center" valign="top"><tt>87</tt></td><td valign="top">Indicates the local should be taken into consideration in the widget.</td></tr>
<tr><td valign="top"><tt>Qt::WA_StyledBackground</tt></td><td align="center" valign="top"><tt>93</tt></td><td valign="top">Indicates the widget should be drawn using a styled background.</td></tr>
</table></p>
<h3 class="fn"><a name="WindowModality-enum"></a>enum Qt::WindowModality</h3>
<a name="modal"></a><p>This enum specifies the behavior of a modal window. A modal window is one that blocks input to other windows. Note that windows that are children of a modal window are not blocked.</p>
<p>The values are:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::NonModal</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The window is not modal and does not block input to other windows.</td></tr>
<tr><td valign="top"><tt>Qt::WindowModal</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The window is modal to a single window hierarchy and blocks input to its parent window, all grandparent windows, and all siblings of its parent and grandparent windows.</td></tr>
<tr><td valign="top"><tt>Qt::ApplicationModal</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The window is modal to the application and blocks input to all windows.</td></tr>
</table></p>
<p>See also <a href="qwidget.html#windowModality-prop">QWidget::windowModality</a> and <a href="qdialog.html">QDialog</a>.</p>
<h3 class="flags"><a name="WindowState-enum"></a>enum Qt::WindowState<br />flags Qt::WindowStates</h3>
<a name="window-state"></a><p>This enum type is used to specify the current state of a top-level window.</p>
<p>The states are</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::WindowNoState</tt></td><td align="center" valign="top"><tt>0x00000000</tt></td><td valign="top">The window has no state set (in normal state).</td></tr>
<tr><td valign="top"><tt>Qt::WindowMinimized</tt></td><td align="center" valign="top"><tt>0x00000001</tt></td><td valign="top">The window is minimized (i.e&#x2e; iconified).</td></tr>
<tr><td valign="top"><tt>Qt::WindowMaximized</tt></td><td align="center" valign="top"><tt>0x00000002</tt></td><td valign="top">The window is maximized with a frame around it.</td></tr>
<tr><td valign="top"><tt>Qt::WindowFullScreen</tt></td><td align="center" valign="top"><tt>0x00000004</tt></td><td valign="top">The window fills the entire screen without any frame around it.</td></tr>
<tr><td valign="top"><tt>Qt::WindowActive</tt></td><td align="center" valign="top"><tt>0x00000008</tt></td><td valign="top">The window is the active window, i.e&#x2e; it has keyboard focus.</td></tr>
</table></p>
<p>The WindowStates type is a typedef for <a href="qflags.html">QFlags</a>&lt;WindowState&gt;. It stores an OR combination of WindowState values.</p>
<h3 class="flags"><a name="WindowType-enum"></a>enum Qt::WindowType<br />flags Qt::WindowFlags</h3>
<a name="window-flag"></a><p>This enum type is used to specify various window-system properties for the widget. They are fairly unusual but necessary in a few cases. Some of these flags depend on whether the underlying window manager supports them.</p>
<p>The main types are</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::Widget</tt></td><td align="center" valign="top"><tt>0x00000000</tt></td><td valign="top">This is the default type for <a href="qwidget.html">QWidget</a>. Widgets of this type are child widgets if they have a parent, and independent windows if they have no parent. See also Qt::Window and Qt::SubWindow.</td></tr>
<tr><td valign="top"><tt>Qt::Window</tt></td><td align="center" valign="top"><tt>0x00000001</tt></td><td valign="top">Indicates that the widget is a window, usually with a window system frame and a title bar, irrespective of whether the widget has a parent or not.</td></tr>
<tr><td valign="top"><tt>Qt::Dialog</tt></td><td align="center" valign="top"><tt>0x00000002 | Window</tt></td><td valign="top">Indicates that the widget is a window that should be decorated as a dialog (i.e&#x2e;, typically no maximize or minimize buttons in the title bar). This is the default type for <a href="qdialog.html">QDialog</a>. If you want to use it as a modal dialog, it should be launched from another window, or have a parent and used with the <a href="qwidget.html#windowModality-prop">QWidget::windowModality</a> property. If you make it modal, the dialog will prevent other top-level windows in the application from getting any input. We refer to a top-level window that has a parent as a <i>secondary</i> window.</td></tr>
<tr><td valign="top"><tt>Qt::Sheet</tt></td><td align="center" valign="top"><tt>0x00000004 | Window</tt></td><td valign="top">Indicates that the widget is a Macintosh sheet.</td></tr>
<tr><td valign="top"><tt>Qt::Drawer</tt></td><td align="center" valign="top"><tt>0x00000006 | Window</tt></td><td valign="top">Indicates that the widget is a Macintosh drawer.</td></tr>
<tr><td valign="top"><tt>Qt::Popup</tt></td><td align="center" valign="top"><tt>0x00000008 | Window</tt></td><td valign="top">Indicates that the widget is a popup top-level window, i.e&#x2e; that it is modal, but has a window system frame appropriate for popup menus.</td></tr>
<tr><td valign="top"><tt>Qt::Tool</tt></td><td align="center" valign="top"><tt>0x0000000a | Window</tt></td><td valign="top">Indicates that the widget is a tool window. A tool window is often a small window with a smaller than usual title bar and decoration, typically used for collections of tool buttons. It there is a parent, the tool window will always be kept on top of it. If there isn't a parent, you may consider using Qt::WindowStaysOnTopHint as well. If the window system supports it, a tool window can be decorated with a somewhat lighter frame. It can also be combined with Qt::FramelessWindowHint.</td></tr>
<tr><td valign="top"><tt>Qt::ToolTip</tt></td><td align="center" valign="top"><tt>0x0000000c | Window</tt></td><td valign="top">Indicates that the widget is a tooltip. This is used internally to implement <a href="qwidget.html#toolTip-prop">tooltips</a>.</td></tr>
<tr><td valign="top"><tt>Qt::SplashScreen</tt></td><td align="center" valign="top"><tt>0x0000000e | Window</tt></td><td valign="top">Indicates that the window is a splash screen. This is the default type for <a href="qsplashscreen.html">QSplashScreen</a>.</td></tr>
<tr><td valign="top"><tt>Qt::Desktop</tt></td><td align="center" valign="top"><tt>0x00000010 | Window</tt></td><td valign="top">Indicates that this widget is the desktop. This is the type for <a href="qdesktopwidget.html">QDesktopWidget</a>.</td></tr>
<tr><td valign="top"><tt>Qt::SubWindow</tt></td><td align="center" valign="top"><tt>0x00000012</tt></td><td valign="top">Indicates that this widget is a child widget, irrespective of whether the widget has a parent or not.</td></tr>
</table></p>
<p>There are also a number of flags which you can use to customize the appearance of top-level windows. These have no effect on other windows:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::MSWindowsFixedSizeDialogHint</tt></td><td align="center" valign="top"><tt>0x00000100</tt></td><td valign="top">Gives the window a thin dialog border on Windows. This style is traditionally used for fixed-size dialogs.</td></tr>
<tr><td valign="top"><tt>Qt::MSWindowsOwnDC</tt></td><td align="center" valign="top"><tt>0x00000200</tt></td><td valign="top">Gives the window its own display context on Windows.</td></tr>
<tr><td valign="top"><tt>Qt::X11BypassWindowManagerHint</tt></td><td align="center" valign="top"><tt>0x00000400</tt></td><td valign="top">Bypass the window manager completely. This results in a borderless window that is not managed at all (i.e&#x2e;, no keyboard input unless you call <a href="qwidget.html#activateWindow">QWidget::activateWindow</a>() manually).</td></tr>
<tr><td valign="top"><tt>Qt::FramelessWindowHint</tt></td><td align="center" valign="top"><tt>0x00000800</tt></td><td valign="top">Produces a borderless window. The user cannot move or resize a borderless window via the window system. On X11, the result of the flag is dependent on the window manager and its ability to understand Motif and/or NETWM hints. Most existing modern window managers can handle this.</td></tr>
<tr><td valign="top"><tt>Qt::CustomizeWindowHint</tt></td><td align="center" valign="top"><tt>0x02000000</tt></td><td valign="top">Turns off the default window title hints.</td></tr>
<tr><td valign="top"><tt>Qt::WindowTitleHint</tt></td><td align="center" valign="top"><tt>0x00001000</tt></td><td valign="top">Gives the window a title bar.</td></tr>
<tr><td valign="top"><tt>Qt::WindowSystemMenuHint</tt></td><td align="center" valign="top"><tt>0x00002000</tt></td><td valign="top">Adds a window system menu, and possibly a close button.</td></tr>
<tr><td valign="top"><tt>Qt::WindowMinimizeButtonHint</tt></td><td align="center" valign="top"><tt>0x00004000</tt></td><td valign="top">Adds a minimize button. On some platforms this implies Qt::WindowSystemMenuHint for it to work.</td></tr>
<tr><td valign="top"><tt>Qt::WindowMaximizeButtonHint</tt></td><td align="center" valign="top"><tt>0x00008000</tt></td><td valign="top">Adds a maximize button. On some platforms this implies Qt::WindowSystemMenuHint for it to work.</td></tr>
<tr><td valign="top"><tt>Qt::WindowMinMaxButtonsHint</tt></td><td align="center" valign="top"><tt>WindowMinimizeButtonHint | WindowMaximizeButtonHint</tt></td><td valign="top">Adds a minimize and a maximize button. On some platforms this implies Qt::WindowSystemMenuHint for it to work.</td></tr>
<tr><td valign="top"><tt>Qt::WindowContextHelpButtonHint</tt></td><td align="center" valign="top"><tt>0x00010000</tt></td><td valign="top">Adds a context help button to dialogs. On some platforms this implies Qt::WindowSystemMenuHint for it to work.</td></tr>
<tr><td valign="top"><tt>Qt::WindowShadeButtonHint</tt></td><td align="center" valign="top"><tt>0x00020000</tt></td><td valign="top">&nbsp;</td></tr>
<tr><td valign="top"><tt>Qt::WindowStaysOnTopHint</tt></td><td align="center" valign="top"><tt>0x00040000</tt></td><td valign="top">Informs the window system that the window should stay on top of all other windows. Note that on some window managers on X11 you also have to pass Qt::X11BypassWindowManagerHint for this flag to work correctly.</td></tr>
<tr><td valign="top"><tt>Qt::WindowType_Mask</tt></td><td align="center" valign="top"><tt>0x000000ff</tt></td><td valign="top">A mask for extracting the window type part of the window flags.</td></tr>
</table></p>
<p>Obsolete flags:</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>Qt::WMouseNoMask</tt></td><td align="center" valign="top"><tt>0x00080000</tt></td><td valign="top">Use <a href="qt.html#WidgetAttribute-enum">Qt::WA_MouseNoMask</a> instead.</td></tr>
<tr><td valign="top"><tt>Qt::WDestructiveClose</tt></td><td align="center" valign="top"><tt>0x00100000</tt></td><td valign="top">Use <a href="qt.html#WidgetAttribute-enum">Qt::WA_DeleteOnClose</a> instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStaticContents</tt></td><td align="center" valign="top"><tt>0x00200000</tt></td><td valign="top">Use <a href="qt.html#WidgetAttribute-enum">Qt::WA_StaticContents</a> instead.</td></tr>
<tr><td valign="top"><tt>Qt::WGroupLeader</tt></td><td align="center" valign="top"><tt>0x00400000</tt></td><td valign="top">No longer needed.</td></tr>
<tr><td valign="top"><tt>Qt::WShowModal</tt></td><td align="center" valign="top"><tt>0x00800000</tt></td><td valign="top">Use <a href="qwidget.html#windowModality-prop">QWidget::windowModality</a> instead.</td></tr>
<tr><td valign="top"><tt>Qt::WNoMousePropagation</tt></td><td align="center" valign="top"><tt>0x01000000</tt></td><td valign="top">Use <a href="qt.html#WidgetAttribute-enum">Qt::WA_NoMousePropagation</a> instead.</td></tr>
<tr><td valign="top"><tt>Qt::WType_TopLevel</tt></td><td align="center" valign="top"><tt>Window</tt></td><td valign="top">Use Qt::Window instead.</td></tr>
<tr><td valign="top"><tt>Qt::WType_Dialog</tt></td><td align="center" valign="top"><tt>Dialog</tt></td><td valign="top">Use Qt::Dialog instead.</td></tr>
<tr><td valign="top"><tt>Qt::WType_Popup</tt></td><td align="center" valign="top"><tt>Popup</tt></td><td valign="top">Use Qt::Popup instead.</td></tr>
<tr><td valign="top"><tt>Qt::WType_Desktop</tt></td><td align="center" valign="top"><tt>Desktop</tt></td><td valign="top">Use Qt::Desktop instead.</td></tr>
<tr><td valign="top"><tt>Qt::WType_Mask</tt></td><td align="center" valign="top"><tt>WindowType_Mask</tt></td><td valign="top">Use Qt::WindowType_Mask instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_Customize</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">No longer needed.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_NormalBorder</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">No longer needed.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_DialogBorder</tt></td><td align="center" valign="top"><tt>MSWindowsFixedSizeDialogHint</tt></td><td valign="top">Use Qt::MSWindowsFixedSizeDialogHint instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_NoBorder</tt></td><td align="center" valign="top"><tt>FramelessWindowHint</tt></td><td valign="top">Use Qt::FramelessWindowHint instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_Title</tt></td><td align="center" valign="top"><tt>WindowTitleHint</tt></td><td valign="top">Use Qt::WindowTitleHint instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_SysMenu</tt></td><td align="center" valign="top"><tt>WindowSystemMenuHint</tt></td><td valign="top">Use Qt::WindowSystemMenuHint instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_Minimize</tt></td><td align="center" valign="top"><tt>WindowMinimizeButtonHint</tt></td><td valign="top">Use Qt::WindowMinimizeButtonHint instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_Maximize</tt></td><td align="center" valign="top"><tt>WindowMaximizeButtonHint</tt></td><td valign="top">Use Qt::WindowMaximizeButtonHint instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_MinMax</tt></td><td align="center" valign="top"><tt>WStyle_Minimize | WStyle_Maximize</tt></td><td valign="top">Use Qt::WindowMinMaxButtonsHint instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_Tool</tt></td><td align="center" valign="top"><tt>Tool</tt></td><td valign="top">Use Qt::Tool instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_StaysOnTop</tt></td><td align="center" valign="top"><tt>WindowStaysOnTopHint</tt></td><td valign="top">Use Qt::WindowStaysOnTopHint instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_ContextHelp</tt></td><td align="center" valign="top"><tt>WindowContextHelpButtonHint</tt></td><td valign="top">Use Qt::WindowContextHelpButtonHint instead.</td></tr>
<tr><td valign="top"><tt>Qt::WPaintDesktop</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">No longer needed.</td></tr>
<tr><td valign="top"><tt>Qt::WPaintClever</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">No longer needed.</td></tr>
<tr><td valign="top"><tt>Qt::WX11BypassWM</tt></td><td align="center" valign="top"><tt>X11BypassWindowManagerHint</tt></td><td valign="top">Use Qt::X11BypassWindowManagerHint instead.</td></tr>
<tr><td valign="top"><tt>Qt::WWinOwnDC</tt></td><td align="center" valign="top"><tt>MSWindowsOwnDC</tt></td><td valign="top">Use Qt::MSWindowsOwnDC instead.</td></tr>
<tr><td valign="top"><tt>Qt::WMacSheet</tt></td><td align="center" valign="top"><tt>Sheet</tt></td><td valign="top">Use Qt::Sheet instead.</td></tr>
<tr><td valign="top"><tt>Qt::WMacDrawer</tt></td><td align="center" valign="top"><tt>Drawer</tt></td><td valign="top">Use Qt::Drawer instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_Splash</tt></td><td align="center" valign="top"><tt>SplashScreen</tt></td><td valign="top">Use Qt::SplashScreen instead.</td></tr>
<tr><td valign="top"><tt>Qt::WNoAutoErase</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">No longer needed.</td></tr>
<tr><td valign="top"><tt>Qt::WRepaintNoErase</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">No longer needed.</td></tr>
<tr><td valign="top"><tt>Qt::WNorthWestGravity</tt></td><td align="center" valign="top"><tt>WStaticContents</tt></td><td valign="top">Use <a href="qt.html#WidgetAttribute-enum">Qt::WA_StaticContents</a> instead.</td></tr>
<tr><td valign="top"><tt>Qt::WType_Modal</tt></td><td align="center" valign="top"><tt>Dialog | WShowModal</tt></td><td valign="top">Use Qt::Dialog and <a href="qwidget.html#windowModality-prop">QWidget::windowModality</a> instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_Dialog</tt></td><td align="center" valign="top"><tt>Dialog</tt></td><td valign="top">Use Qt::Dialog instead.</td></tr>
<tr><td valign="top"><tt>Qt::WStyle_NoBorderEx</tt></td><td align="center" valign="top"><tt>FramelessWindowHint</tt></td><td valign="top">Use Qt::FramelessWindowHint instead.</td></tr>
<tr><td valign="top"><tt>Qt::WResizeNoErase</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">No longer needed.</td></tr>
<tr><td valign="top"><tt>Qt::WMacNoSheet</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">No longer needed.</td></tr>
</table></p>
<p>The WindowFlags type is a typedef for <a href="qflags.html">QFlags</a>&lt;WindowType&gt;. It stores an OR combination of WindowType values.</p>
<p>See also <a href="qwidget.html#windowFlags-prop">QWidget::windowFlags</a> and <a href="widgets-windowflags.html">Window Flags Example</a>.</p>
<hr />
<h2>Function Documentation</h2>
<h3 class="fn"><a name="convertFromPlainText"></a><a href="qstring.html">QString</a> Qt::convertFromPlainText ( const <a href="qstring.html">QString</a> &amp; <i>plain</i>, <a href="qt.html#WhiteSpaceMode-enum">WhiteSpaceMode</a> <i>mode</i> = WhiteSpacePre )</h3>
<p>Converts the plain text string <i>plain</i> to an HTML-formatted paragraph while preserving most of its look.</p>
<p><i>mode</i> defines how whitespace is handled.</p>
<p>This function is defined in the <tt>&lt;QTextDocument&gt;</tt> header file.</p>
<p>See also <a href="qt.html#escape">escape</a>() and <a href="qt.html#mightBeRichText">mightBeRichText</a>().</p>
<h3 class="fn"><a name="escape"></a><a href="qstring.html">QString</a> Qt::escape ( const <a href="qstring.html">QString</a> &amp; <i>plain</i> )</h3>
<p>Converts the plain text string <i>plain</i> to a HTML string with HTML metacharacters <tt>&lt;</tt>, <tt>&gt;</tt>, and <tt>&amp;</tt> replaced by HTML entities.</p>
<p>Example:</p>
<pre> QString plain = &quot;#include &lt;QtCore&gt;&quot;
 QString html = Qt::escape(plain);
<span class="comment"> //</span> html == &quot;#include &amp;lt;QtCore&amp;gt;&quot;</pre>
<p>This function is defined in the <tt>&lt;QTextDocument&gt;</tt> header file.</p>
<p>See also <a href="qt.html#convertFromPlainText">convertFromPlainText</a>() and <a href="qt.html#mightBeRichText">mightBeRichText</a>().</p>
<h3 class="fn"><a name="mightBeRichText"></a>bool Qt::mightBeRichText ( const <a href="qstring.html">QString</a> &amp; <i>text</i> )</h3>
<p>Returns true if the string <i>text</i> is likely to be rich text; otherwise returns false.</p>
<p>This function uses a fast and therefore simple heuristic. It mainly checks whether there is something that looks like a tag before the first line break. Although the result may be correct for common cases, there is no guarantee.</p>
<p>This function is defined in the <tt>&lt;QTextDocument&gt;</tt> header file.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
